I am developing an app for android where I need some data from a mysql server. I have decided to use a php server to retrieve info from the database, and also to upload new data to the database, since android doesn’t support MySql.
The app is some kind of a joke app where you have some opportunities regarding what kind of jokes you want.
You can get a completely random joke regardless of its categories. But you should also be able to get a list of jokes within a specific category.
My question goes here: Would it be the best to download all jokes from the database at the beginning of the app or would it be better to sort the jokes in the php server?
You could set up a system where you can download an index of jokes, then download them in bulk based on if they have already been downloaded or not. Just an Idea. For example, your code would go through its local database and send a request to the server to send back certain jokes.