current position:Home>How to build index based on wave field event log

How to build index based on wave field event log

2022-02-03 23:02:13 Q & A of Denglian community

We store the structure data in the event log of the wave field , Now I want to query , Whether the event log can be indexed , For example, one of the fields in the data we save is called name, Can it be based on name Build an index to query data .

Take the answer 1:

Sure .

There are two ways :

  1. It is a direct query on the chain , Give... In an event name Combined with the index indexed, Use filter Filter .
  2. Listen to all events and save them in the offline database , use SQL Statement query .

2 Relatively speaking, the cost is higher , But the performance will be better , More flexible .

Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.

Random recommended