Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7620685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:59:46+00:00 2026-05-31T03:59:46+00:00

I’ve been working on a Play application (1.2.4) which will do some crunching on

  • 0

I’ve been working on a Play application (1.2.4) which will do some crunching on logs. It’s not really the typical thing the framework would be used for (basically I’ll probably be the only user), but it’s so fast to test an idea that I decided to use this.

I’ll be loading a lot of different kinds of events and related accounts stored in the log (database) of a separate application, store them in the local database and then do correlation between the events. Until now I have just fetched the logs to file and imported them to the database, but it’s clumsy, slow, error prone and the files grow pretty large when the timeframe is extended.

I’d like to figure out a way to get read access to two external databases, run queries and then create locally stored objects in the local database. Both external databases have different schemas, and of course the local one is different two. The connection is only needed during the import, and since the tables I’m importing data from contain a lot of columns out of which I just need a few (and the servers are far away) I would prefer to query for just the columns I need. I’m fine with directly creating models stored locally directly out of the result-set, so I have no need to even define models based on the external database. I might also need to fetch data out of external database A based on data I get from database B (for example when a log row contains a user I have not stored locally, fetch his data from the other server before storing the event). The connections are only needed during import which in theory is a one time event. Also a big bonus would be the possibility to configure the datasources settings without having to restart (for example storing the host / port in the local database and reading the values before starting the import).

Most threads I find about using multiple DB’s seem to be related to reducing load by spreading data with the same schema over several instances. I did find some threads about having separate databases with a different schema, but could not quite figure out how well the solutions would adapt to my needs. Any feedback would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:59:48+00:00Added an answer on May 31, 2026 at 3:59 am

    You can connect to your external databases in the same way you usually would – JDBC, Hibernate, or whatever. Play adds a bit of framework magic into internally managed models, but there’s nothing stopping you adding n different access methods for n frameworks. You will have to manage transactional state, etc, yourself but that’s no different to usual.

    Note that you can also use Spring to configure these external databases.

    If this is a one-hit import, you may want to consider writing a migration tool to do this, and have your main application focus on its day job. You can share the DB model between your main app and your migration app, and so write the migration app using Play. We did this on a previous project, and it worked very well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.