PostgreSQL slow query detected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 11:40 AM
When load testing my (LTS2015 HF27 + PosgreSQL 9.6 + ElasticSearch 1.x) platform with Tsung , i get a (very) slow query as shown below .
Even if create the index as suggested by PoWa :
CREATE INDEX hierarchy_mixintypes_idx
/>
ON public.hierarchy
/>
USING gin
(mixintypes COLLATE pg_catalog."default");
Regards, Henri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 11:52 AM
index suggestions by PoWa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 12:08 PM
Your query contains NX_ACCESS_ALLOWED
which means you disabled the ACL optimizations. It's unavoidable that with a largish amount of data any query will become slow. See https://doc.nuxeo.com/nxdoc/read-acls/
Make sur you define nuxeo.vcs.optimizations.acl.enabled=true
and follow the guide in the page above (REBUILDING READ ACLS) to make sure the indexes needed are recomputed after you do the switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2017 03:43 AM
We defined nuxeo.vcs.optimizations.acl.enabled=false in order to minimize the ACL write time, as recommended in https
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2017 01:32 PM
Could you execute your query in pgAdmin with EXPLAIN ANALYZE commands and check result on page https
