Skip to content

Commit b7be4bc

Browse files
committed
Order by message bench last two days.
1 parent 18f1536 commit b7be4bc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/SeqCli/Cli/Commands/Bench/BenchCases.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555
"query": "select @Timestamp from stream where @Timestamp >= now() - 30d order by @Timestamp % 1ms limit 10",
5656
"notes": "Tests performance of limited sort."
5757
},
58+
{
59+
"id": "order-by-message-limit-10",
60+
"query": "select @Message from stream where @Timestamp >= now() - 2d order by @Message limit 10",
61+
"notes": "Adds character collation to limited sort."
62+
},
63+
{
64+
"id": "order-by-message-limit-10-ci",
65+
"query": "select @Message from stream where @Timestamp >= now() - 2d order by @Message ci limit 10",
66+
"notes": "Adds case insensitive character collation to limited sort."
67+
},
5868
{
5969
"id": "count-where-heavy-predicate",
6070
"query": "select count(*) from stream where (A = 1 or B = '2' or C or D <> null or length(E) > 5 or F = {f: 6} or G = '7' or H like '8%' or I > 9 or J % 10 = 0) and @Timestamp >= now() - 30d for no_cache",

src/SeqCli/Cli/Commands/Bench/BenchCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected override async Task<int> Run()
204204
}
205205

206206
return 0;
207-
}
207+
}
208208
catch (Exception ex)
209209
{
210210
Log.Error(ex, "Benchmarking failed: {ErrorMessage}", ex.Message);

0 commit comments

Comments
 (0)