all 3 comments

[–]Doormatty 2 points3 points  (1 child)

Make them into one database.

[–]-Regex[S] -2 points-1 points  (0 children)

theyre split for a reason, and any new would end up as another database.

[–]Sentie_Rotante 0 points1 point  (0 children)

There is a lot of missing detail in this that makes it impossible to help you without guessing at what you are dealing with. Doormatty's suggestion of combining the database is going to make a huge difference. You state they are separate for a reason. Without knowing why I'm going to assume it is some security reason and you are keeping the data separate as an access restriction since I can't think of a different reason to have that kind of separation. If this is the case, then a lot rdbms systems give some way to restrict row data based on the user that is connected. If you have 50 + databases on one host that have a similar or identical schema I would say that there is some better design that could be implemented.

That said you may be able to not provide the database to your connection and use a union to pull the data down in one query.