Editing
Corpus/Schema
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Benchmark results == Measured on 3.4M rows, PostgreSQL 16, single-node, 16 GB RAM. {| class="wikitable" ! Query !! Corpus schema !! Previous 16-table schema !! Speedup |- | Tag filter + date range || 0.9 ms || β || B-tree scan, instant |- | FTS + tag filter (broad, 111K results) || 4.4 s || 31 s || 7x faster (BitmapAnd vs Seq Scan) |- | Tag-only + date || 1.4 ms || β || B-tree scan, instant |- | FTS narrow (17K results, warm) || 565 ms || β || Partial GIN index |- | Get by ID || 0.3 ms || 0.3 ms || PK lookup |- | Tag discovery (GROUP BY court, 3.4M rows) || 2.7 s || β || Seq scan β justifies tag_stats |} The FTS speedup comes from BitmapAnd of GIN (FTS) + GIN (tags) indexes. The previous schema used a Parallel Seq Scan because the planner could not combine B-tree (court column) with GIN (FTS) efficiently. ----
Summary:
Please note that all contributions to Dura Lex Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Dura Lex Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information