Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ordinary indexes the default #619

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

jeltsch
Copy link
Collaborator

@jeltsch jeltsch commented Mar 12, 2025

Up to now, defaultTableConfig declared compact indexes to be used by default. This pull request changes this, making ordinary indexes the default.

Furthermore, this pull request changes the following files such that they now override the confFencePointerIndex field of defaultTableConfig with CompactIndex in order to continue using compact indexes:

  • bench/macro/lsm-tree-bench-wp8.hs
  • bench/micro/Bench/Database/LSMTree/Monoidal.hs
  • bench/micro/Bench/Database/LSMTree/Normal.hs
  • test/Test/Database/LSMTree/Internal/Snapshot/Codec/Golden.hs
  • test/Test/Database/LSMTree/Internal/Snapshot/FS.hs
  • test/Test/Database/LSMTree/UnitTests.hs

The remaining source code files that use defaultTableConfig are the following ones:

  • test/Test/Database/LSMTree/Class.hs
  • test/Test/Database/LSMTree/Internal.hs

These are not changed, so that they now operate with ordinary indexes.

Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few minor changes to make and then we can squash and merge

@@ -232,7 +233,7 @@ benchInsertBatches =
!batchSize = 256

_benchConfig :: Common.TableConfig
_benchConfig = Common.defaultTableConfig {
_benchConfig = benchConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jorisdral jorisdral force-pushed the jeltsch/ordinary-indexes-as-default branch from 358f9d6 to 610e9b7 Compare March 14, 2025 12:40
@jorisdral jorisdral enabled auto-merge March 14, 2025 12:40
@jorisdral jorisdral added this pull request to the merge queue Mar 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 14, 2025
@jorisdral jorisdral added this pull request to the merge queue Mar 14, 2025
Merged via the queue into main with commit 2058c06 Mar 14, 2025
27 checks passed
@jorisdral jorisdral deleted the jeltsch/ordinary-indexes-as-default branch March 14, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants