nostrdb: flags: make some indexes optional

Make fulltext indices and note blocks optional. This will be useful for
quickly building databases when testing, since more stuff in the write
queue when writing can slow things down.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-12-15 11:23:09 -08:00
committed by Daniel D’Aquino
parent e0461d3458
commit 05baba9c03
2 changed files with 22 additions and 11 deletions

View File

@@ -9,8 +9,11 @@
#define NDB_PACKED_STR 0x1
#define NDB_PACKED_ID 0x2
#define NDB_FLAG_NOMIGRATE (1 << 0)
#define NDB_FLAG_NOMIGRATE (1 << 0)
#define NDB_FLAG_SKIP_NOTE_VERIFY (1 << 1)
#define NDB_FLAG_NO_FULLTEXT (1 << 2)
#define NDB_FLAG_NO_NOTE_BLOCKS (1 << 3)
#define NDB_FLAG_NO_STATS (1 << 4)
//#define DEBUG 1