use custom packing for indexable data: PackedEvent

This commit is contained in:
Doug Hoyte
2024-08-29 20:18:05 -04:00
parent 32a367738c
commit 61781f351f
18 changed files with 212 additions and 208 deletions

View File

@ -90,7 +90,7 @@ void RelayServer::runCron() {
if (expiration == 1) { // Ephemeral event
auto view = env.lookup_Event(txn, levId);
if (!view) throw herr("missing event from index, corrupt DB?");
uint64_t created = view->flat_nested()->created_at();
uint64_t created = PackedEventView(view->packed()).created_at();
if (created <= ephemeralCutoff) {
numEphemeral++;