-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
pagination.pagerSize
has bad performance
#13078
Comments
This doesn't make sense that moving a config option should slow down the build, so there must be something else in play, which is impossible to tell without seeing the site source. |
Agreed. Just tested with a 10,000 page size. No difference. |
Thank you for the fast response! I actually spotted an additional oddity, which might give some insight into what happens. The number of paginator pages actually increases from Our usage of the paginator is basically this code here:
Any ideas or pointers on where this could come from? |
Can you try to remove the quotes and make it:
(a related tip would be to do How many pages in total are there in the list passed to |
This seems to make no difference (build time stays the same and hugo config output is identical). There are With
With
The state with In the config i saw, that the |
@sgraband if you can somehow give me access to the Hugo source for this site, I can probably figure it out, but I can not guess by the numbers you're showing. |
This may be unrelated to the problem you are experiencing, but I am curious. Why are you using Consider this site configuration:
If your EN site has 100 pages, and your DE site has 42 pages:
Your page collection may be correct, but it did catch my attention... |
pagniation.pagerSize
has bad performancepagination.pagerSize
has bad performance
I updated the hugo version for our website to 0.139.0 lately. The build now gives this warning:
Therfore i changed the entry in the config.toml from
to
While this works it increases the build time of the website by a factor of 10 (from 1 minute to 10 minutes).
Is there a reason why the build time increases that drastically? Or is there a better way to remove the deprecated field and still have the normal performance?
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes
The text was updated successfully, but these errors were encountered: