add kindtimeidx

This commit is contained in:
Yasuhiro Matsumoto
2023-11-09 01:18:53 +09:00
parent 5e45b03914
commit fed1abfe0a

View File

@@ -30,6 +30,7 @@ var ddls = []string{
`CREATE INDEX IF NOT EXISTS pubkeyprefix ON event(pubkey)`,
`CREATE INDEX IF NOT EXISTS timeidx ON event(created_at DESC)`,
`CREATE INDEX IF NOT EXISTS kindidx ON event(kind)`,
`CREATE INDEX IF NOT EXISTS kindtimeidx ON event(kind,created_at DESC)`,
}
func (b *SQLite3Backend) Init() error {