Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to index and filter keys in map? #419

Open
DinahoDSGN opened this issue Oct 26, 2023 · 0 comments
Open

Is it possible to index and filter keys in map? #419

DinahoDSGN opened this issue Oct 26, 2023 · 0 comments

Comments

@DinahoDSGN
Copy link

Is there a way to filter data inside nested data structures like this JSON example:

{
   "100000000": [
     {
       "created_at": 1231232,
       "d": 123
     },
     {
       "created_at": 123124,
       "d": 123
     }
   ],
   "120000000": [
     {
       "created_at": 1231232,
       "d": 123
     },
     {
       "created_at": 123124,
       "d": 123
     }
   ],
   "130000000": [
     {
       "created_at": 1231232,
       "d": 123
     }
   ]
}

Tell me, is it possible to search through all elements of the array, and within each key in the array of objects, select only those data whose created_at is between 100 and 1000, for example?

If possible, please tell me. How much does this impact performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant