With the data increases, loading them all is not a good idea.
We can only load the first page, and load others when users click the certain page. Every time the data is updated(i.e. insert or delete), navigate to the first page automatically.
Some new problems may come. For example, because the web page only has partial datas now, how to find the last legendary card when the current one is deleted? A simple solution is that querying the database immediately.
With the data increases, loading them all is not a good idea.
We can only load the first page, and load others when users click the certain page. Every time the data is updated(i.e. insert or delete), navigate to the first page automatically.
Some new problems may come. For example, because the web page only has partial datas now, how to find the last legendary card when the current one is deleted? A simple solution is that querying the database immediately.