# Combining results from multiple database servers

**URL:** <https://www.ruby-forum.com/t/combining-results-from-multiple-database-servers/105519>\
**Category:** Rails\
**Created:** [May 30, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/combining-results-from-multiple-database-servers/105519 "2007-05-30T18:15:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradrover](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b9bd4f/32.png) [@bradrover](https://www.ruby-forum.com/u/bradrover)\
**Post date:** [May 30, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/combining-results-from-multiple-database-servers/105519/1 "2007-05-30T18:15:55Z")

</div>

If I have a table called “customers” that is distributed across  
several database servers, is there a way I can build a model that will  
query all of the databases and return a combined result ? For example,  
I’d like to query for all customers using a gmail email account, but  
the data is partitioned by customer last name, so this must be  
combined from multiple servers. The same schema exists on all servers.  
Thanks for any help.
