-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
Micromarché Hubs on coopcircuits.fr opens very slowly #12870
Comments
@openfoodfoundation/developers without fixing it first, is there a way to easily find the process that takes so much time? If it's relationships FR support could consider to divide their shops between several email accounts. |
I made various tests to check what makes the shop slow :
|
I have also added the same type of order cycle on the new shop with no effect (normal speed). |
This issue was first reported on Slack on 2024-09-11. There was a series of optimsations for this page before this performance issue was reported. One optimsation just the day before.
|
I copied the French database to my local server and tested the shops page. It loads in about 10 seconds. Reverting #12827 doesn't help, then it takes 12 seconds. Going back to the code before all those optimisations, it takes 11 seconds to load. So no significant difference here. |
FYI the load time is specific to Micromarche shop. I made many tests and I think it is linked to the orders background. But not only the number of orders because some shop have more orders and are much faster. |
Oh, okay, I looked at the wrong thing then. I looked at |
So the individual shop page loads in 13 seconds for me but the shop is closed at the moment. |
Sorry for the misleading slack posts. |
Loading that particular shop locally with French data reveals the same thing. The majority of time is spent in the I think I have to take a step back here. I was hoping to find a trivial fix like reverting a pull request. But this database query needs some really good focus. Maybe caching will be an answer. The sad thing is that there are only 18 properties. So it takes all this time just to combine a lot of data in the database to know which of these 18 properties to display so that we can filter in the shopfront and don't show filters for properties that don't have products here. |
Does it suggest a workaround we could use in the meantime? |
Good question. The query doesn't involve orders. But it does involve order cycles. They are then filtered by active order cycles but you could try to clean out old order cycles. |
Just to explain a bit, to find the product properties to show it looks at all producers with properties, then all the products they have and all the order cycles these products are in. Then it filters the order cycles by the distributor and opening times. Dev note: |
This comment has been minimized.
This comment has been minimized.
It looks like we have regular issues with server load on FR prod, with downtimes being reported regularly. Last night, it was down for 8 minutes then 11 minutes. |
Well, |
@openfoodfoundation/developers There is a greenlight from budget circle on this first step. I've created |
@nicolasVr I've missed a few meetings, but I don't see in the notes that a budget was dedicated to that, so I'm downgrading it to s3 // the global team won't be able to take this one before global core budget increases :( |
Please use #12870 Index Order cycles in Clockify when working on this issue
Description
Micromarché manages several Hubs (for instance https://coopcircuits.fr/micromarche-la-resto-du-grand-t/shop#/shop_panel ). Those hubs are linked to many producers and have a big order background.
Opening the shop page takes 30 to 40 seconds and, logically, buyers complain that is long and some give up.
Expected Behavior
Shop page should open in a few seconds.
Actual Behaviour
Opening a page takes 30 to 40 seconds
Steps to Reproduce
Workaround
No kwown workaround
Severity
s2 ?
Checked with various browsers ans OS without significant change
The text was updated successfully, but these errors were encountered: