mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
DittoPgStore: index "client" tag
This commit is contained in:
parent
be5c58c615
commit
c425a9d39a
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue