Add note that get_objects_by_id does not raise.

master
voussoir 2021-11-07 18:52:50 -08:00
parent fbe2a664e5
commit 71830845d4
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 4 additions and 0 deletions

View File

@ -199,6 +199,10 @@ class Database(metaclass=abc.ABCMeta):
This is better than calling get_object_by_id in a loop because we can
use a single SQL select to get batches of up to 999 items.
This method does not raise exceptions for IDs that are not present in
the database. You will need to compare the set of returned objects with
the set of requested IDs.
Note: The order of the output is not guaranteed to match the order of
the input. Consider using get_objects_by_sql if that is a necessity.
'''