Forum OpenACS Development: cc_users vs. acs_users_all

Collapse
Posted by Malte Sussdorff on
I detected that acs_users_all is faster by a magnitude of 2-3 than cc_users if dealing with 180K users.

It would be nice for scalability reasons to use acs_users_all instead of cc_users if possible. I made a change already on the 5-0 branch, hope it comes into 5-1, otherwise I can commit it there as well (for login of the user. Should not take 15 seconds).

Collapse
Posted by Don Baccus on
It would be nice if they returned the same thing, but they don't,  deleted users will be returned in that view as well as user 0.

Please don't put this change into the FROZEN except major bug fixes 5.1, much less 5.0.  There could be hidden and embarrassing consequences.

Collapse
Posted by Malte Sussdorff on
So I assume we are stuck with cc_users and util_memoize? Isn't there a faster way to retrieve the user_id from an email or a screenname than querying cc_users ?
Collapse
Posted by Don Baccus on
Is this Postgres or Oracle?  Can you post the execution plan for the query using cc_users on your 180K users?