You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a big json(about 20MB), and it's a huge object which has many other objects as its children.
Each obj has a uid field, and i want to filter some obj out with uid.
If i get all uids, then redis will return immediately。
other examples: $.childrens[*].childrens[?(@.uid==27)] is fast, but $.childrens[*]..childrens[?(@.uid==27)] or $..childrens[*].childrens[?(@.uid==27)] is slow:
Activity
[-]JsonPath too slow for big json[/-][+]JsonPath filter too slow for big json[/+]gkorland commentedon Feb 27, 2022
@zhangever can you please share an example JSON? if you can't share the 20MB please share an smaller example
zhangever commentedon Feb 27, 2022
Thanks for the reply.
you can take the following json as a smaller example.
sample.json.zip
Add benchmark for issue #674
MOD-2785: Add benchmark for issue #674 (#693)
Merge from master to 2.0 towards 2.0.8 (#698)
JoaoOxOc commentedon Jun 17, 2022
@gkorland is it possible to use regex? tried
$.data[?(/acc.*/.test(@.name))]but it always throws the json path errorgkorland commentedon Aug 9, 2022
JSONPath doesn't support regex