Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries to use subselects instead of inner joins #11

Open
samuraisam opened this issue Sep 28, 2013 · 0 comments
Open

Queries to use subselects instead of inner joins #11

samuraisam opened this issue Sep 28, 2013 · 0 comments

Comments

@samuraisam
Copy link
Member

Query performance should be identical (since we use a 2nd indexed table for filtering) however the query will be more versatile. For example, DELETEs don't work with INNER JOIN, or any join for that matter, but do with sub queries.

This could be an option vs the default.

Also investigate to confirm performance claims (using EXPLAIN)

This could also be used to "combine" indexes. Right now we choose the biggest index and exclude all others. Obviously, the best performance will be achieved with the lowest number of indexes, but it will be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant