1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

mhnsw: configurable parameters

1. introduce alpha. the value of 1.1 is optimal, so hard-code it.

2. hard-code ef_construction=10, best by test

3. rename hnsw_max_connection_per_layer to mhnsw_max_edges_per_node
   (max_connection is rather ambiguous in MariaDB) and add a help text

4. rename hnsw_ef_search to mhnsw_min_limit and add a help text
This commit is contained in:
Sergei Golubchik
2024-06-11 12:58:41 +02:00
parent 25b4000290
commit 5c2b7c6e7f
6 changed files with 80 additions and 71 deletions

View File

@@ -924,9 +924,8 @@ typedef struct system_variables
Charset_collation_map_st character_set_collations;
/* Temporary for HNSW tests */
uint hnsw_max_connection_per_layer;
uint hnsw_ef_constructor;
uint hnsw_ef_search;
uint mhnsw_max_edges_per_node;
uint mhnsw_min_limit;
} SV;
/**