|
|
|
|
|
by fouc
3687 days ago
|
|
It's a webapp, they're likely already querying all the meal information from a mysql or postgresql db. Chances are they could have made a change to their db models and written some sql to handle food requirements checking instead of handling it after the query. But that could've been premature optimization ultimately, and to speed it up now, it's probably easier to optimize the slow ruby code with some rust instead. |
|
For example if we have a few tables we can determine which menu items a user could eat: