Skip to content

Commit e71cc70

Browse files
fix(database): Including bandwidth usage in error message for queries without indexes (#138)
1 parent bca804a commit e71cc70

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/database/core/PersistentConnection.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,9 @@ export class PersistentConnection extends ServerActions {
290290
'".indexOn": "' + query.getQueryParams().getIndex().toString() + '"';
291291
const indexPath = query.path.toString();
292292
warn(
293-
'Using an unspecified index. Consider adding ' +
294-
indexSpec +
295-
' at ' +
296-
indexPath +
297-
' to your security rules for better performance'
293+
`Using an unspecified index. Your data will be downloaded and ` +
294+
`filtered on the client. Consider adding ${indexSpec} at ` +
295+
`${indexPath} to your security rules for better performance.`
298296
);
299297
}
300298
}

0 commit comments

Comments
 (0)