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

why use cross join in many sql query instead of join(inner join) ? #104

Closed
DreamWuGit opened this issue Jun 26, 2018 · 3 comments
Closed

Comments

@DreamWuGit
Copy link

I saw many 'cross join' sql statement when composing sql query , from what I know , cross join statement with using condition will force sqlite query optimizer execute nested loop as join table order which occur in sql expression , is it because of this ? if there is any other concern ? appreciate your comments @tonyofbyteball @kakysha
Thnanks !

@tonyofbyteball
Copy link
Member

Yes we want to ensure a specific order of tables, otherwise sqlite query planner often chooses suboptimal plans.

@DreamWuGit
Copy link
Author

OK, Thanks for your feedback.

@DreamWuGit
Copy link
Author

Closing it now.

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

2 participants