fix maxlimit to appear in nip-11 and be properly enforced

add flatten flag for store so it flattens on request at shutdown if an import has taken place

import runs GC every 10000 events to limit fragmentation of tables

implement a specific count function that only decodes the event if there is an extra filter (which should be the minority of cases)

change search to use maps for indexes to automatically deduplicate in case of multiple queries matching the same field

improve logging to show origins of request/events in relay accept req/event

count now returns an aproximate flag for the case of extrafilters finding replaceable events
This commit is contained in:
2024-10-29 09:52:03 +00:00
parent e448b4a264
commit ce8f4add85
17 changed files with 207 additions and 74 deletions

View File

@@ -43,6 +43,9 @@ type T struct {
// ActuallyDelete sets whether we actually delete or rewrite deleted entries with a modified
// deleted prefix value (8th bit set)
ActuallyDelete bool
// Flatten should be set to true to trigger a flatten at close... this is mainly
// triggered by running an import
Flatten bool
}
var _ eventstore.I = (*T)(nil)