I'm building a todo list with a repeting task function.
In the core data model, I have a binary attribute that I store and array with all the repeat dates.
e.g [NSDate date],
[NSDate date] + 1 week,
[NSDate date] + 2 week, etc...
So each todo added will have an array with repeat dates.
I need to look at all the dates (contain inside the repeat dates array) and if any of those dates is todays date, I want to get that todo and show it in a tableview.
My first though is to get all the todo's in the database, loop throw all the dates to see if any of them match todays date... but this seems quite inefficient, especially if the database contains a lot of tods..
What's the best approach here?
Thanks