Skip to content

Add config to disable default node hash index#428

Merged
adsharma merged 1 commit intomainfrom
disable_hash_index
Apr 29, 2026
Merged

Add config to disable default node hash index#428
adsharma merged 1 commit intomainfrom
disable_hash_index

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

@adsharma adsharma commented Apr 28, 2026

Related: #97

  CALL enable_default_hash_index=false;
  CREATE NODE TABLE `User` (`name` STRING,`age` INT64, PRIMARY KEY(`name`));
  UNWIND range(1, 10000) AS i
  CREATE (:User {name: CAST(i AS STRING), age: i});

and verified to contain 10000 rows.

The persisted on-disk result is now clearly different:

  • test10k.db: 3.1M
  • test10k-nohash.db: 116K

CALL disk_size_info() after reopening shows:

  • test10k-nohash.db: only header, catalog, metadata, node_table, total=29 pages
  • test10k.db: also has pk_index_overhead and index_data, total=801 pages

@adsharma adsharma force-pushed the disable_hash_index branch from d24b5be to 0d31f20 Compare April 28, 2026 04:11
@adsharma adsharma force-pushed the disable_hash_index branch from 0d31f20 to 5bbf02f Compare April 28, 2026 04:32
@adsharma adsharma merged commit 516b59e into main Apr 29, 2026
4 checks passed
@adsharma adsharma deleted the disable_hash_index branch April 29, 2026 04:49
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.

1 participant