Closed zdavatz closed 4 years ago
this issue could also have been solved using NSPredicate API
this has been recommended by @bettar, i.e.: https://github.com/bettar/miele-lxiv/blob/lxiv/OsiriXClasses/Web/WebPortalConnection%2BData.mm#L262
I think NSPredicate API is not suitable for searching data in database. If we use it, we will have to load the entire database and match them one by one in memory, which is slow, use more memory and cannot take advantage of Sqlite's ability. My solution of using GLOB and SQL means we can have the similar code across iOS/Android/Csharp etc, which IMO is better.
See: https://github.com/zdavatz/aips2sqlite/issues/3