DittoPgStore: index "client" tag

This commit is contained in:
Alex Gleason 2025-04-03 12:29:45 -05:00
parent be5c58c615
commit c425a9d39a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -83,6 +83,7 @@ export class DittoPgStore extends NPostgres {
/** Conditions for when to index certain tags. */
static tagConditions: Record<string, TagCondition> = {
'a': ({ count }) => count < 15,
'client': ({ count, value }) => count === 0 && value.length < 50,
'd': ({ event, count }) => count === 0 && NKinds.parameterizedReplaceable(event.kind),
'e': DittoPgStore.eTagCondition,
'k': ({ count }) => count < 3,