Add index of start time so that queries with a LIMIT clause can avoid a full table scan (for #202)

This commit is contained in:
David Dworken
2024-04-14 10:19:46 -07:00
parent 7e4ca84da5
commit ba21e1c2dd
3 changed files with 3 additions and 2 deletions

View File

@ -2996,7 +2996,7 @@ func BenchmarkQuery(b *testing.B) {
// Benchmarked code:
b.StartTimer()
ctx := hctx.MakeContext()
_, err := lib.Search(ctx, hctx.GetDb(ctx), "echo", 0)
_, err := lib.Search(ctx, hctx.GetDb(ctx), "echo", 100)
require.NoError(b, err)
b.StopTimer()
}