|
|
|
|
|
by etirk
1589 days ago
|
|
Yes, an EAV pattern is being used. The end result in query speed with the particular table designs and indexes is essentially just like what index intersection gives you but without the setup.
And of course EAV is not a pattern that you can easily roll out by hand when you need it. Please try this demo which is a sample of some queries against Clinical Trials data. https://schemafreesql.com/demo.html#clinicalTrial
Although this demo data set is a limited size, the same queries when run against the entire clinicalTrial dataset performed very respectably. |
|
Another commenter illustrated some of the issues you will run into with this pattern at scale.
It would probably help to benchmark some complex queries on a sizable data set. And compare against mongo, postgres jsonb, vanilla eav, clickhouse, etc. Without much information to go on, it's hard to know what this is.