Re: Maximum realistic number of database user accounts?

From: "Greg Fausak" <lgfausak(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Maximum realistic number of database user accounts?
Date: 2008-02-14 21:04:00
Message-ID: 8c7b802f0802141304v1e8bf22bp6afa2e99ef6a90e1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

inline..

On Thu, Feb 14, 2008 at 1:03 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Greg Fausak" <lgfausak(at)gmail(dot)com> writes:
> > Can I create a database with 1 million login roles and expect performance to
> > be good? 10 million?
>
> Probably not, as (to my knowledge) no one has ever done any performance
> testing in that domain. I doubt anyone's worked with more than a few
> thousand roles. I can definitely say that granting permissions on the
> same object to many thousands of roles separately would be a Bad Idea.
>

I'm definitely granting permissions to (group) roles, then the roles are
altered to add classes of users. For example, a 'enduser' role and 'admin' role
control the access privileges ia views, and the individual login roles
are granted
either 'enduser' or 'admin' (the group is altered to include the users).

So, your statement that granting permissions on the same object, does
that apply to roles themselves?
The bulk of my permissions boil down to granting a role to a role.

We have good performance now in the 20K user range. I was just curious what
would happen when this gets bumped up a couple orders.

-g

> Feel free to try it, but I'd *strongly* advise doing some performance
> testing before you commit to such a design. And think about how you can
> use groups to reduce redundancy in the permissions data.
>
> regards, tom lane
>

--
Greg Fausak
greg(at)thursday(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brent Friedman 2008-02-14 21:18:00 JDBC and Postgresql 8.0 - cpu usage question
Previous Message Brian A. Seklecki 2008-02-14 21:00:44 Re: PostgreSQL/PHP Application Server