More than a question, it is a query, I am currently with an api serving data, and I have arrived at the following situation, I have a user preferences table, where the configuration options of each user are stored, with json, I do I get a get and it returns all the data of that table, and then I have to filter that data with the user id that is logged in, my point is, there is another way to do this, that is, with mysql in the query I put the id of the user and only returned the data of that user, here I load the data of all users and then I have to filter. As I am inexperienced, I fear that if I have a record with more than a thousand data, and in the end I only need 1 of those data, I have to load all of that, and in the end it would affect the performance of my page.
It is already too late to back out with the api, I would like to know if there is a solution, or maybe I am exaggerating and this does not affect the performance.
Thanks in advance.