Much faster getUserList

This commit is contained in:
Bryan Ashby 2020-07-13 22:40:49 -06:00
parent 9fa0c4458e
commit 24963406ea
No known key found for this signature in database
GPG key ID: B49EB437951D2542
2 changed files with 24 additions and 34 deletions

View file

@ -183,6 +183,11 @@ const DB_INIT_TABLE = {
);`
);
dbs.user.run(
`CREATE INDEX IF NOT EXISTS user_property_id_and_name_index0
ON user_property (user_id, prop_name);`
);
dbs.user.run(
`CREATE TABLE IF NOT EXISTS user_group_member (
group_name VARCHAR NOT NULL,