aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
432 stars 198 forks source link

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

Open DinahoDSGN opened 11 months ago

DinahoDSGN commented 11 months ago

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?