Skip to content

Commit 5547660

Browse files
Inlcuding bandwidth usage in error message for queries without indexes (#201)
1 parent 3151a61 commit 5547660

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firebase/Database/Core/FPersistentConnection.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,8 @@ - (void) warnOnListenWarningsForQuery:(FQuerySpec *)query payload:(id)payload {
703703
if ([warningsArr containsObject:@"no_index"]) {
704704
NSString *indexSpec = [NSString stringWithFormat:@"\".indexOn\": \"%@\"", [query.params.index queryDefinition]];
705705
NSString *indexPath = [query.path description];
706-
FFWarn(@"I-RDB034028", @"Using an unspecified index. Consider adding %@ at %@ to your security rules for better performance", indexSpec, indexPath);
706+
FFWarn(@"I-RDB034028", @"Using an unspecified index. Your data will be downloaded and filtered on the client. "
707+
"Consider adding %@ at %@ to your security rules for better performance", indexSpec, indexPath);
707708
}
708709
}
709710
}

0 commit comments

Comments
 (0)