Skip to content

Commit

Permalink
[columnar] Adds column level caching and controls
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySievert committed May 23, 2023
1 parent d331fc1 commit 565cc14
Show file tree
Hide file tree
Showing 9 changed files with 3,940 additions and 16 deletions.
28 changes: 27 additions & 1 deletion columnar/src/backend/columnar/columnar.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ bool columnar_enable_parallel_execution = true;
int columnar_min_parallel_processes = 8;
bool columnar_enable_vectorization = true;
bool columnar_enable_dml = true;
bool columnar_enable_page_cache = true;
int columnar_page_cache_size = 200U;

static const struct config_enum_entry columnar_compression_options[] =
{
Expand Down Expand Up @@ -162,10 +164,34 @@ columnar_init_gucs()
&columnar_enable_dml,
true,
PGC_USERSET,
GUC_NO_SHOW_ALL,
0,
NULL,
NULL,
NULL);

DefineCustomBoolVariable("columnar.enable_column_cache",
gettext_noop("Enables column based caching"),
NULL,
&columnar_enable_page_cache,
false,
PGC_USERSET,
0,
NULL,
NULL,
NULL);

DefineCustomIntVariable("columnar.column_cache_size",
gettext_noop("Size of the column based cache in megabytes"),
NULL,
&columnar_page_cache_size,
200U,
20U,
20000U,
PGC_USERSET,
GUC_NO_SHOW_ALL,
NULL,
NULL,
NULL);
}


Expand Down
Loading

0 comments on commit 565cc14

Please sign in to comment.