MichielProost / Perfect-Plate

This Android application allows cheffs around the world to create, review and discover new recipes. Users can gain experience and level up in this app by completing challenges like creating a certain amount of recipes.
1 stars 2 forks source link

Store favourites locally #3

Open Nuytemans-Dieter opened 4 years ago

Nuytemans-Dieter commented 4 years ago

Users can save (favourite) a recipe. Storing them locally will make them load faster and may reduce the amount of required database reads.

MichielProost commented 4 years ago

Perfect! Don't know how to implement it yet. We'll have to learn offline usage first. But definitely a good idea!

Nuytemans-Dieter commented 4 years ago

Agreed

MichielProost commented 4 years ago

I think we can add the favourites to our cache system. I'm not familiar with the current system; I would like to get involved after my exams. If we can optimize this system, we will avoid a huge chunk of reads

Nuytemans-Dieter commented 4 years ago

I think we can add the favourites to our cache system. I'm not familiar with the current system; I would like to get involved after my exams. If we can optimize this system, we will avoid a huge chunk of reads

The cache system is not persistent through app restarts, it would require saving locally. The existing cache system could be utilised for this too, though (which would also decrease the amount of reads). #27 would need to be fixed first if we're going to cache this.

MichielProost commented 4 years ago

Agreed.