Skip to content

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

@dinahosl

Description

@dinahosl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions