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

Performance issue with sorting by date part #2

Open
acetinick opened this issue Apr 8, 2022 · 8 comments
Open

Performance issue with sorting by date part #2

acetinick opened this issue Apr 8, 2022 · 8 comments
Labels
question Further information is requested

Comments

@acetinick
Copy link

With the new pro feature of sorting by date in a part, when you have hundreds of articles the performance is affected drastically.

@Bramjetten
Copy link
Contributor

Can you share the log of a slow request? I'm curious what the SQL looks like.

@acetinick
Copy link
Author

Hey @Bramjetten here are examples of the slow requests, firstly this is the query I am using to perform pagination

image

then the logs produced:

image

@Bramjetten
Copy link
Contributor

Looks like we need an index to make this query fast. I will dive into this.

@stale
Copy link

stale bot commented Jun 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Bramjetten
Copy link
Contributor

This is still an issue.

@stale
Copy link

stale bot commented Aug 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Bramjetten
Copy link
Contributor

Still planning on fixing this.

@stale stale bot closed this as completed Aug 16, 2022
@Bramjetten Bramjetten reopened this Aug 16, 2022
@Bramjetten
Copy link
Contributor

I've created 1000 pages with randomized content and dates. I've then ordered them by that date and I'm seeing <5ms response times from the db. I'm not sure what causes your slowdown. How many records do you have in total?

CleanShot 2022-08-26 at 10 23 04@2x

@Bramjetten Bramjetten added the question Further information is requested label Aug 26, 2022
@Bramjetten Bramjetten transferred this issue from SpinaCMS/Spina Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants