From Cached
to Common
database for a very quick start-up phase.
This commit is contained in:
parent
d325b43c04
commit
070d49833c
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ class AuthD::Service < IPC
|
|||
property configuration : Baguette::Configuration::Auth
|
||||
|
||||
# DB and its indexes.
|
||||
property users : DODB::Storage::Cached(User)
|
||||
property users : DODB::Storage::Common(User)
|
||||
property users_per_uid : DODB::Trigger::IndexCached(User)
|
||||
property users_per_login : DODB::Trigger::IndexCached(User)
|
||||
property users_per_email : DODB::Trigger::IndexCached(User)
|
||||
|
@ -42,7 +42,7 @@ class AuthD::Service < IPC
|
|||
def initialize(@configuration)
|
||||
super()
|
||||
|
||||
@users = DODB::Storage::Cached(User).new @configuration.storage_directory
|
||||
@users = DODB::Storage::Common(User).new @configuration.storage_directory, 5000
|
||||
@users_per_uid = @users.new_index "uid", &.uid.to_s
|
||||
@users_per_login = @users.new_index "login", &.login
|
||||
@users_per_email = @users.new_index "email" do |user|
|
||||
|
|
Loading…
Add table
Reference in a new issue