Open sfkeller opened 2 years ago
Work done:
Thanks @lbuchli
Use periodically refreshed materialized views for data storage, allow these updates to occur concurrently to database requests.
Resolved in https://gitlab.ost.ch/ifs/geometalab/potm/ (currently a private repo)
Developement of a new, more accurate query specialized on counting deletions
Ok. So let's leave this issue open until we really can cover this edge case.
The views on the database are sometimes slow with complex queries, especially when counting deletions - as in the "FIXME case" (counting removed FIXMEs).
Therefore, the PostgreSQL database must be specifically examined for performance bottlenecks by applying EXPLAIN ANALYZE and e.g. pgtune, type conversions (datetime) and read optimizations (e.g. CREATE UNLOGGED TABLE...).
Another hint (source: https://www.crunchydata.com/blog/performance-and-spatial-joins):
Then try