You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now our query quota implementation doesn't bail out of a request until /after/ the potentially costly database operation has been completed! So, although we return 404s when the quota is reached, we don't actually save ourselves any work.
A quick fix would be to just move the increment call up the function to before the request to db is made. A less quick, but more robust fix would be to move the quota logic to a request middleware and manage this all at the same step is other authentication concerns.
The text was updated successfully, but these errors were encountered:
Right now our query quota implementation doesn't bail out of a request until /after/ the potentially costly database operation has been completed! So, although we return 404s when the quota is reached, we don't actually save ourselves any work.
A quick fix would be to just move the increment call up the function to before the request to db is made. A less quick, but more robust fix would be to move the quota logic to a request middleware and manage this all at the same step is other authentication concerns.
The text was updated successfully, but these errors were encountered: