From: | Anders Steinlein <anders(at)steinlein(dot)no> |
---|---|
To: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Schema per user? |
Date: | 2009-05-07 20:12:25 |
Message-ID: | 3317AA3B-BE4E-4875-AC38-918BFBEA33FD@steinlein.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On May 7, 2009, at 10:05 PM, Scott Marlowe wrote:
> On Thu, May 7, 2009 at 1:45 PM, Anders Steinlein
> <anders(at)steinlein(dot)no> wrote:
>> Hi,
>>
>> I'm pondering a design question for a subscription-based web-app we
>> are
>> developing. Would it be feasible to create a new schema per user
>> account,
>> setting the search_path to their own schema during login?
>>
>> [snip]
>
> We're looking at something similar here at work, but in the 10k to 10M
> range of schemas. I'll let you know how our testing goes.
>
> 1,000 is nothing in terms of schemas. You should be fine.
I'd be *very* interested to hear your experiences once you get some
results.
Generally though, what made you consider such a solution? Same
advantages as I mentioned? One thing I'm a bit usure of how best to
solve is where to place the "users" or some such table for
authentication and other "shared" info -- simply in the "public"
schema, perhaps?
\a.
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Ruth | 2009-05-07 20:39:47 | Re: Schema per user? |
Previous Message | Scott Marlowe | 2009-05-07 20:05:59 | Re: Schema per user? |