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