More debug logging
This commit is contained in:
parent
753126b8cc
commit
f4ea78e9e2
|
@ -443,6 +443,8 @@ class SQLBaseStore(object):
|
||||||
if not event_ids:
|
if not event_ids:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
logger.debug("_get_events_txn called with %d events", len(event_ids))
|
||||||
|
|
||||||
if len(event_ids) > 50:
|
if len(event_ids) > 50:
|
||||||
events = []
|
events = []
|
||||||
n = 50
|
n = 50
|
||||||
|
@ -451,6 +453,8 @@ class SQLBaseStore(object):
|
||||||
events.extend(self._get_events_txn(txn, e_ids))
|
events.extend(self._get_events_txn(txn, e_ids))
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
logger.debug("_get_events_txn Fetching %d events", len(event_ids))
|
||||||
|
|
||||||
where_clause = " OR ".join(["e.event_id = ?" for _ in event_ids])
|
where_clause = " OR ".join(["e.event_id = ?" for _ in event_ids])
|
||||||
|
|
||||||
sql = (
|
sql = (
|
||||||
|
|
Loading…
Reference in New Issue