diff options
Diffstat (limited to 'src/olpc/datastore/datastore.py')
-rw-r--r-- | src/olpc/datastore/datastore.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/olpc/datastore/datastore.py b/src/olpc/datastore/datastore.py index 9880f43..34eb23c 100644 --- a/src/olpc/datastore/datastore.py +++ b/src/olpc/datastore/datastore.py @@ -27,6 +27,8 @@ DS_OBJECT_PATH = "/org/laptop/sugar/DataStore" logger = logging.getLogger(DS_LOG_CHANNEL) +DEFAULT_LIMIT = 65536 + class DataStore(dbus.service.Object): def __init__(self, **options): @@ -259,7 +261,7 @@ class DataStore(dbus.service.Object): order_by = kwargs.pop('order_by', []) # XXX: this is a workaround, deal properly with n backends - limit = kwargs.pop('limit', 50) + limit = kwargs.pop('limit', DEFAULT_LIMIT) offset = kwargs.pop('offset', 0) # distribute the search to all the mountpoints unless a |