[nodejs] Multi-tenant with multiple databases?

2015-06-08 Thread Steve P
I'm working on a multi-tenant app in which each client will have their own database, each having the identical schemas and I need to be able to swap out the database I'm connecting to on a per request basis. I've been able to find nothing regarding this ability as near as I can tell the db conn

Re: [nodejs] Multi-tenant with multiple databases?

2015-06-08 Thread Aria Stewart
> On 8 Jun 2015, at 23:38, Steve P wrote: > > I'm working on a multi-tenant app in which each client will have their own > database, each having the identical schemas and I need to be able to swap out > the database I'm connecting to on a per request basis. I've been able to find > nothing re

Re: [nodejs] Multi-tenant with multiple databases?

2015-06-10 Thread Steve P
Thank you very much Aria!! Coming from a PHP background Node is a complete change of pace! On Monday, June 8, 2015 at 9:57:08 PM UTC-7, Aria Stewart wrote: > > > > On 8 Jun 2015, at 23:38, Steve P > > wrote: > > > > I'm working on a multi-tenant app in which each client will have their > own

Re: [nodejs] Multi-tenant with multiple databases?

2015-06-22 Thread Gustavo Machado
Not sure how many tenants you plan to have in memory, but you should probably check out some (memory) caching libraries. Cheers, Gus On Tue, Jun 9, 2015 at 1:39 AM, Aria Stewart wrote: > > > On 8 Jun 2015, at 23:38, Steve P wrote: > > > > I'm working on a multi-tenant app in which each client