diff options
author | Sebastian Schmidt <mrschmidt@google.com> | 2017-08-16 19:08:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 19:08:43 -0700 |
commit | 55476604aabbb35be7ed7d871236644c1e1d395a (patch) | |
tree | cc465ee35f3bcaf5dfc1ccaadf1dc3dea7d2a5f9 /Firebase/Database | |
parent | 3151a61ac3dd633a6b3c9c17ae2ca63f0c4fa698 (diff) |
Inlcuding bandwidth usage in error message for queries without indexes (#201)
Diffstat (limited to 'Firebase/Database')
-rw-r--r-- | Firebase/Database/Core/FPersistentConnection.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Firebase/Database/Core/FPersistentConnection.m b/Firebase/Database/Core/FPersistentConnection.m index 5f4de76..643f9b4 100644 --- a/Firebase/Database/Core/FPersistentConnection.m +++ b/Firebase/Database/Core/FPersistentConnection.m @@ -703,7 +703,8 @@ static void reachabilityCallback(SCNetworkReachabilityRef ref, SCNetworkReachabi if ([warningsArr containsObject:@"no_index"]) { NSString *indexSpec = [NSString stringWithFormat:@"\".indexOn\": \"%@\"", [query.params.index queryDefinition]]; NSString *indexPath = [query.path description]; - FFWarn(@"I-RDB034028", @"Using an unspecified index. Consider adding %@ at %@ to your security rules for better performance", indexSpec, indexPath); + FFWarn(@"I-RDB034028", @"Using an unspecified index. Your data will be downloaded and filtered on the client. " + "Consider adding %@ at %@ to your security rules for better performance", indexSpec, indexPath); } } } |