You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* TODO - oapi runtime support for discriminators
* showcase dynamic filters and update runtime now that it supports discriminators
* update bad notes on indexes
* refactor cache index creation in post migrations
* update runtime
* notes
* standard filter modes labels - fix filter inputs
* log before oapi 400 middleware
* update pagination params and filters
* notes to fix runtime package for arrays
* update towards support for discriminator in query params
* go mod update
* attempt at discriminator json parsing
* working example of query params with array oneof
* generate fixed query params with arrays in anyof oneof allof and frontend filters update
* no right section now that we have filter mode labels
* fix filters and heleprs
* dont export oidc mock user models
* css
- gin is apparently not too helpful for very short string searches.
238
260
- btree not usable for text except for equals and startsWith.
239
261
240
-
create index on cache__demo_work_items using gin (
262
+
263
+
make sure the index used in explain is the one being tested...
264
+
265
+
drop index if exists lastmsg;
266
+
create index lastmsg on cache__demo_work_items using btree (
267
+
last_message_at desc);
268
+
269
+
drop index if exists abc;
270
+
create index abc on cache__demo_work_items using gin (
241
271
description gin_trgm_ops
242
272
, last_message_at
243
273
, reopened);
244
274
245
275
set enable_seqscan = "off";
246
-
explain analyze select * from cache__demo_work_items where description ilike '%54%' order by last_message_at desc;
247
-
248
-
1000 rows dataset: (to properly test index, rows returned must be >0)
249
-
Index Scan Backward using cache__demo_work_items_last_message_at_idx on cache__demo_work_items (cost=0.28..58.22 rows=20 width=145) (actual time=0.059..0.725 rows=20 loops=1)
250
-
Filter: (description ~~* '%54%'::text)
251
-
Rows Removed by Filter: 980
276
+
-- with 1000 rows
277
+
explain analyze select * from cache__demo_work_items where description ilike '%4%' order by last_message_at desc limit 20;
278
+
-> Index Scan using lastmsg on cache__demo_work_items (cost=0.28..58.23 rows=263 width=145) (actual time=0.018..0.160 rows=20 loops=1)
252
279
*/
253
280
case project_name
254
281
when 'demo_work_items' then
@@ -257,7 +284,6 @@ begin
257
284
, line gin_trgm_ops
258
285
, description gin_trgm_ops
259
286
, ref gin_trgm_ops
260
-
, last_message_at
261
287
, reopened)';
262
288
when 'demo_two_work_items' then
263
289
idx_def :='using gin (
@@ -268,22 +294,27 @@ begin
268
294
idx_def :=''; raise exception 'No index definition found for cache__%' , project_name;
269
295
end case;
270
296
271
-
if idx_def <>''and not same_index_definition (idx_name , idx_def) then
0 commit comments