Sorry I couldnt get back to you sooner. I’m reopening the original issue and will investigate. I don’t know why regexp isn’t used for filters, but i think it’s worth checking. My gut feeling is that regexps are very slow, not to mention that they can use lots of memory.
If others could weigh in on this, it would be great.
Ref: Not to use trigrams when filtering by regexp · Issue #2565 · dgraph-io/dgraph · GitHub