Authored by Justin R. Miller

Merge pull request #505 from mglasgow/develop

perf improvement to RMDatabaseCache when counting existing tiles
... ... @@ -308,7 +308,7 @@
[_queue inDatabase:^(FMDatabase *db)
{
FMResultSet *results = [db executeQuery:@"SELECT COUNT(tile_hash) FROM ZCACHE"];
FMResultSet *results = [db executeQuery:@"SELECT COUNT(*) FROM ZCACHE"];
if ([results next])
count = [results intForColumnIndex:0];
... ...