the search/all endpoint is currently cached because it has been slow historically. I recently noticed in the code that it appears to be returning the entire profiles table through sqlalchemy, and then filtering it in python before sending it to the client. this could probably be improved by just returning the four fields that are needed with sqlalchemy before sending them to the client.
the search/all endpoint is currently cached because it has been slow historically. I recently noticed in the code that it appears to be returning the entire profiles table through sqlalchemy, and then filtering it in python before sending it to the client. this could probably be improved by just returning the four fields that are needed with sqlalchemy before sending them to the client.