Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Conversation

@martinstenrose
Copy link
Contributor

@martinstenrose martinstenrose commented Dec 5, 2017

RainLoop does a lot of SQL queries like SELECT id_prop, id_contact, prop_type, prop_value FROM rainloop_ab_properties WHERE prop_type IN (30,15,16,18) AND id_contact IN (173812,757514); which takes a lot of time if the rainloop_ab_properties is big (quite noticeable with ~6 million rows).

Use this to create index on an existing table:
CREATE INDEX id_contact_prop_type_rainloop_ab_properties_index ON rainloop_ab_properties(id_contact, prop_type);

@RainLoop RainLoop merged commit 10c92a8 into RainLoop:master Feb 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants