Skip to content

Commit

Permalink
feat: use own scope for preprocessing
Browse files Browse the repository at this point in the history
The database object can be very large and holding two instances might be too much for some servers
  • Loading branch information
JonasKellerer committed Jul 27, 2023
1 parent 46a0421 commit 2a93846
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/silo_api/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ class SiloServer : public Poco::Util::ServerApplication {
auto database_config =
silo::config::ConfigRepository().getValidatedConfig(database_config_path);

auto database_preprocessing =
silo::Database::preprocessing(preprocessing_config, database_config);
{
auto database_preprocessing =
silo::Database::preprocessing(preprocessing_config, database_config);

database_preprocessing.saveDatabaseState("output/serialized_state/");
database_preprocessing.saveDatabaseState("output/serialized_state/");
}

auto database = silo::Database::loadDatabaseState("output/serialized_state/");

Expand Down

0 comments on commit 2a93846

Please sign in to comment.