mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix database options
This commit is contained in:
parent
382e300326
commit
2e3a765dac
6 changed files with 37 additions and 26 deletions
|
@ -463,7 +463,11 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
env_logger::init();
|
||||
|
||||
let opt = Command::from_args();
|
||||
let database = Database::open_or_create(opt.path(), DatabaseOptions::default())?;
|
||||
let db_opts = DatabaseOptions {
|
||||
main_map_size: 100 * 1024 * 1024 * 1024,
|
||||
update_map_size: 100 * 1024 * 1024 * 1024,
|
||||
};
|
||||
let database = Database::open_or_create(opt.path(), db_opts)?;
|
||||
|
||||
match opt {
|
||||
Command::Index(command) => index_command(command, database),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue