Fetch superevents from gracedb more judiciously
superevent.handle
pulls down the the entire list of superevents from gracedb everytime an alert comes in. This is clearly a waste of resource, high latency, specially when number of superevents grow large. Choose on a judicious time window from between which to fetch the superevents.
-
Use the query
kwarg ofsuperevents(query='''{0} .. {1}'''.format(t_start, t_end))
method to achieve this.
Edited by Deep Chatterjee