Re: [PERFORM] Gist indexing performance with cidr types

2015-08-27 Thread Emre Hasegeli
> Nothing really interesting here though. I think the slowdown is not related with the key your searched for, but the organisation of the index. We have a simple structure for the index keys. Basically, common bits of the child nodes are stored on the parent node. It leads to not efficient inde

Re: [PERFORM] Gist indexing performance with cidr types

2015-08-27 Thread Henrik Thostrup Jensen
On Wed, 26 Aug 2015, Jeff Janes wrote: Any chance you can share the actual underlying data? Sure. I added a snapshot to the repo: https://github.com/job/irrexplorer/blob/master/data/irrexplorer_dump.sql.gz?raw=true I noticed it wasn't on github, but is that because it is proprietary, or just

Re: [PERFORM] Gist indexing performance with cidr types

2015-08-27 Thread Henrik Thostrup Jensen
On Wed, 26 Aug 2015, Emre Hasegeli wrote: Can you try to isolate it even more by something like this: I tried some different bisection approaches: -- base query (time ~19 seconds) EXPLAIN (ANALYZE, BUFFERS) SELECT rv.route, rv.asn, rv.source FROM (SELECT DISTINCT route FROM routes_view WH