substrate-archive icon indicating copy to clipboard operation
substrate-archive copied to clipboard

Is it possible to only index events?

Open tomusdrw opened this issue 5 years ago • 2 comments

AFAICT the project indexes all blocks, extrinsics and storage items. Is it possible to:

  1. Mix-and-match things that get indexed?
  2. Parse and index frame_system::Events in a more structured form? (e.g. I'd like to easily query blocks that triggered a particular kind of event).

tomusdrw avatar Nov 23 '20 12:11 tomusdrw

There's no way to do this yet, but it would be a feature that would be implemented alongside/after type decoding (type-decoding branch)

In the current state of archive we don't differentiate from different types of storage items, they're all just key-value pairs that are stored so nothing can really be filtered. With type-decoding we can differentiate based on the pallet an entry came from/particular transaction names/etc and it would then be trivial to allow a user to enter a set of pallets or entries they want and not index anything else

insipx avatar Nov 23 '20 13:11 insipx