HIGH PRIORITY: Can't create categories
I was hoping to create a category this morning to be able to share with all of our users, but the forum creates an error.
Last time this happened you just upped the limit, but this seems like a really bad way to fix it. Please fix this asap, since it means the announcement we had scheduled to go out to customers cannot be made, which means it may end up causing us customers.
- CChristian Scheuer @chrscheuer
- CChristian Scheuer @chrscheuer
This is on forum.soundflow.org / c1.talkyard.net
- CChristian Scheuer @chrscheuer
No matter what I set up, no matter how many permissions I remove, we're completely locked out. I'm completely unable to create the category.
FWIW - if you can help set it up manually, we're trying to set up a category called "Getting Started" with slug "getting-started"
- KajMagnus @KajMagnus2021-03-17 09:47:29.457Z
I'll fix
- CChristian Scheuer @chrscheuer
Thanks, Magnus!
- KajMagnus @KajMagnus2021-03-17 11:14:36.402Z
Should work now. Would you like to try?
- KajMagnus @KajMagnus2021-03-17 11:23:27.297Z
@chrscheuer And yes, I'll make these limits dynamically configurable, and add a notice message & email when at 50% of max, so there's time to bump the limits. (And a warning message & email at 75%.)
- CChristian Scheuer @chrscheuer
Hm, I'm not sure that will help since creating new categories is such a rare occurrence.
Why are the limits there in the first place and why does it need to create 500+ new objects when I'm creating a category?
It seems to me this doesn't need dynamical limits, it needs the logic changed, so that the limits are based on what the user inputs, not on some random backend multiplication factor.
As a user you have no control or knowledge of why the system needs to create 500+ objects of some sort.- CChristian Scheuer @chrscheuer
It worked now - thanks for the speedy fix. But I still feel for the future that the logic is wrong that you're making limits based on backend logic instead of limiting user input. Ie. make the limit so that you can only create X new categories per minute for example. But limiting based on something the user has no control over seems like a recipe for bugs/unavailability.
- KajMagnus @KajMagnus2021-03-17 11:58:41.573Z
Yes that's true. The reason I originally added those limits, was that I was worried that maybe an unexpected distribution of things in the database (for example, suddenly really many categories), could cause PostgreSQL to pick a dangerously slow query execution plan.
But apparently that's a low risk thing, compared to the risk of running into those limits themselves.
Instead, there could be automatic notifications of slow database queries, sent to the server admins. That'd work for all types of queries (not only categories and permissions). And (like you wrote) Ty could also do rate limiting instead, of new categories etc.
(Sorry b.t.w. for the new-categories-downtime)
- CChristian Scheuer @chrscheuer
No worries :) Just interested in picking the best long term option so we won't run into it again :) Thanks for sharing your thoughts.
- Progresswith handling this problem