Hi, guys
We noticed that handleInstallation
function from RestWriter
file build a slow $or
query with params like objectId
, deviceToken
and installationId
. However, why deviceToken and installationId are used for this query when the objectId has already been used?
"find": "_Installation",
"filter": {
"$or": [
{
"_id": "xxxxx"
},
{
"installationId": "16577d08-776b-4822-bde9-xxxxx"
},
{
"deviceToken": "xxxxxxxx..."
}
]
},
"sort": {},
"projection": {},
"returnKey": false,
"showRecordId": false.........
}