[Dovecot] Getting plugin config by user
There is a native way to set/get a configuration to one plugin, to various users ?
Like this:
my_plugin{ user_a=configurations user_b=configurations user_...... user_z=configurations }
I Have plugin and it can be enable/disabled by user. And i have a lot of users, like 10 m.
i think if i do like this:
my_plugin { configurations=user_a,user_b,user....,user_z }
Can get much memory to read every line of configuration...
Tks !
On Fri, 2010-11-05 at 11:40 -0200, Alex Baule wrote:
There is a native way to set/get a configuration to one plugin, to various users ?
Return it from userdb: http://wiki2.dovecot.org/UserDatabase/ExtraFields#Overriding_settings
Timo,
the SQL Backend for the ExtraField, have a cache ?
Or if 300 users connects to the IMAP 10 times, the backend will get 300 X 10 connections to the database ?
2010/11/5 Timo Sirainen tss@iki.fi
On Fri, 2010-11-05 at 11:40 -0200, Alex Baule wrote:
There is a native way to set/get a configuration to one plugin, to various users ?
Return it from userdb: http://wiki2.dovecot.org/UserDatabase/ExtraFields#Overriding_settings
On Fri, 2010-11-05 at 13:58 -0200, Alex Baule wrote:
the SQL Backend for the ExtraField, have a cache ?
Or if 300 users connects to the IMAP 10 times, the backend will get 300 X 10 connections to the database ?
The extra fields come as part of the userdb lookup (by auth process) that is done in any case. There is no separate extra fields lookup or connections to database.
participants (2)
-
Alex Baule
-
Timo Sirainen