3

I have a table "config" in multiple databases (for countries "uk", "pl", ...) and I want to load this table for each DB with Springboot and Spring data. So at the start of application I want to load config tables from each database in to one collection.

I looked into using AbstractRoutingDatasource but I feel like it is no ideal.

What approach would you recommend?

3
  • 1
    You should use a multitenancy approach. Please find my recommendation here... Commented Sep 10, 2018 at 9:22
  • I like this approach. Thanks! Commented Sep 10, 2018 at 9:33
  • If you like some answer don't forget to upvote it ;) Commented Sep 10, 2018 at 9:36

1 Answer 1

2

I use below example for my code there are one DB declare as primary. link or link2 there second one is easy to understand.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.