-
-
Notifications
You must be signed in to change notification settings - Fork 509
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 Improvements #2396
Comments
The file watcher is disabled on all sites btw |
Can you share more information about the site? Number of collections, number of entries, etc? |
And development environment. And if the load times are as crazy if the template and layout is empty. (i.e. Is it just visiting the url that's the problem, or something within your view that is causing the load time) |
Sure, zip it up and send it to support@statamic.com |
Done! |
I'm also experiencing a similar problem, I have 17 locales and more than 8000+ collection entries. However, I've been setting my application caching strategy to |
Caching helps indeed. But I have disabled it locally as I don't want the cache to be active in my dev environment. Hope we will be hearing back soon from the gents. It's a huge problem which will be addressed soon, hopefully. |
This issue might be related as we've mentioned slow page loads before: statamic/ssg#16 |
That would make sense! |
If you have thousands of entries, you're going to at least need to make sure the stache watcher is turned off. https://github.com/statamic/statamic/blob/master/config/statamic/stache.php#L7-L18 |
On my side I have the watcher turned off as we discussed previously #1723, it helps a lot but the page loads still seem to take a while as shown in this issue. |
I have Andreas' site and should be looking through that today. I am curious to know how you're using a site with 17 locales (not that there's really anything wrong with that) |
That sounds amazing! Ping me on Discord or over here if you need any help or further info. I'll be around the whole day. |
BTW. As an added note: disabling the debugbar helps as well improving the performance. In the test site I sent I enabled it as I tried to get a clue on where the problem was. |
Oh yeah debug bar definitely adds overhead. |
We're running a publishing (book) website with content going back to the 1970s, and it's been translated into many languages over the years. The large number of collection entries comes from a personal journal by the organisation that covers their daily life going back to the 2005. The large number of entries is also why I've created this pull request to improve the speed on SSG statamic/ssg#24 |
Awesome, thanks. |
@jasonvarga gave me a decent workaround today. It seems, as of now, that the
As
|
It helps caching the navs but I'm still experiencing a delay just parsing a collection tag. My |
@tao any chance you could send us a zip of your site to support@statamic.com ? |
@jasonvarga I'll send one through later today. |
Rather than extend the collection tag that does a bunch of extra queries (like excluding drafts etc) we'll just do simple queries here which is faster. You pass ids/uris into the tag, that's what you get. If you need to be filtering, you can use the collection tag. Ref #2396
Closing this as it's just really generic and would probably sit open forever. We can open specific issues for individual items. Or, give https://statamic.com/support a shout. |
@tao Is this something that is really fixed now? Or did you use the cache workaround? Having the same issues as you with latest statamic. The augmention seems to be the problem which causes it to be slow (nav is using augmention as well). |
I didn't say it was fixed. |
@ceesvanegmond Our performance has improved a lot, I think we're down to sub 3s on most pages on the dev website... I believe @jasonvarga helped us figure this out and it was related to assets on S3, specifically audio files. Our site is live now and we're happy with the way it's working, although we don't use any augmentation so your issue might be more specific. |
Bug Description
I do get insane load times in development. Especially with multisite being enabled. No addons installed.
Example site 1 with multisite (2 locales):
Example site 2 with multisite (7 locales):
Example site 3 without multisite:
To me it seems the more locales present, the worse the performance. With static caching enabled in production, it isn't a problem. But it's a huge downside for developing.
Environment
Statamic 3.0.7 Pro
Laravel 7.28.1
PHP 7.4.10
No addons installed
The text was updated successfully, but these errors were encountered: