Skip to content

Commit

Permalink
feat: explicitly enable metadata caching
Browse files Browse the repository at this point in the history
Apparently has to be set manually, default is false. It scans the metadata once, and the following reads will benefit from the in-memory cached metadata.
  • Loading branch information
rimarin committed Feb 22, 2024
1 parent 8e1d3f1 commit 33235ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/partitioning/partitioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ struct DuckDBPartitionState : public DuckDBBenchmarkState {
auto result = make_uniq<DuckDBPartitionState>(GetDatabasePath()); \
return std::move(result); \
} \
void Load(DuckDBBenchmarkState *state_p) override { \
void Load(DuckDBBenchmarkState *state_p) override { \
state_p->conn.Query("PRAGMA enable_object_cache"); \
} \
void RunBenchmark(DuckDBBenchmarkState *state_p) override { \
auto state = (DuckDBPartitionState *)state_p; \
Expand Down

0 comments on commit 33235ac

Please sign in to comment.