Is it okay to emit event from hooks like on_initialize()
?
For example, I have ~1000 items in storage and in a loop in on_initialize()
I want to emit an event if certain process is completed, then is it fine?
Also, what is more efficient:
a) emit a burst of 1000 events, or
b) combine events information in a large Vec<>
and then send it wrapping in an event?