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

Query Optimization #50

Open
jaybuddy opened this issue May 16, 2018 · 0 comments
Open

Query Optimization #50

jaybuddy opened this issue May 16, 2018 · 0 comments

Comments

@jaybuddy
Copy link

Hello!

This isn't so much an issue as just something to think about...

For sites that have lots of posts (say over 3 million) sitemap generation get increasing slow. From what I can tell its from the LIMIT usage with an offset in the query. I was looking into a way to modify the query to remove the offset in the LIMIT clause and keep track of your place in the posts via the where clause as you cycle.

ex. WHERE ... p.ID > last post id from previous cycle...

I've been looking through the source code and it seems like that is going to be a fairly difficult optimization to make. Do you have any suggestions?

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