I have a java + react + mysql db application that displays objects for different cities. Objects can be displayed for each city.
- filtering is java side
- React side pagination
I have a little problem, it takes up to 9 seconds to display all objects on the front for large cities. How could I increase the filtering speed? One of the ideas I've read is to divide the database into cities, create filtering on the base, and create pagination by JPA. This solution is a lot of work, is there any other way to increase the filter speed? (changing the base is not an option)