clair/database/pgsql
Quentin Machu 06531e01c5 database: disable hash/merge joins in FindLayer
Our experiments have shown that PostgreSQL 9.4 makes bad
planning decisions about:
- joining the layer tree to feature versions and feature
- joining the feature versions to affected/fixed feature version and vulnerabilities
It would for instance do a merge join between affected feature versions (300 rows, estimated
3000 rows) and fixed in feature version (100k rows). In this case, it is much more
preferred to use a nested loop.
2016-02-24 16:40:40 -05:00
..
migrations database: add created_at field for layers and vulnerabilities 2016-02-24 16:36:45 -05:00
testdata
complex_test.go updater/database: do not create notifications during the initial update 2016-02-24 16:36:45 -05:00
feature_test.go
feature.go database: cache feature version upon lookup 2016-02-24 16:34:54 -05:00
keyvalue_test.go
keyvalue.go
layer_test.go
layer.go database: disable hash/merge joins in FindLayer 2016-02-24 16:40:40 -05:00
lock_test.go
lock.go
namespace_test.go database: add ability to list namespaces 2016-02-24 16:34:54 -05:00
namespace.go database: add ability to list namespaces 2016-02-24 16:34:54 -05:00
notification_test.go database: fix notification test (wrong signature) 2016-02-24 16:36:45 -05:00
notification.go database: fix notification design and add vulnerability history 2016-02-24 16:36:45 -05:00
pgsql.go database: fix Ping() method in PostgreSQL's implementation 2016-02-24 16:36:45 -05:00
queries.go database: disable hash/merge joins in FindLayer 2016-02-24 16:40:40 -05:00
vulnerability_test.go updater/database: do not create notifications during the initial update 2016-02-24 16:36:45 -05:00
vulnerability.go database: ignore min versions during new vulnerability insertions 2016-02-24 16:36:45 -05:00