Using API is definitely recommended option.
But if you want to do it one off, you can just restart the service after changing database directly.
Thanks Anton.
A follow up question: Is there a way to bulk add permissions using the API? For example, instead of passing a single object {"deviceId":1234, "geofenceId":3}
can I pass an array like this [{"deviceId":1234, "geofenceId":3},{"deviceId":1235, "geofenceId":3}]
?
I looked in the code and it seems to only be taking an object instead of an array .. so I wanted to confirm.
Where in the code did you look?
Hi,
I have to do a few bulk additions such as linking multiple devices to single geofence. I might have to do this in a loop for a few geofences.
There are 2 ways of doing it.
Which is better? If I use #2 (bulk insert into the DB), is there any caching that is affected? Will the geofence trigger work normally? Or do I have to trigger any kind of cache reset?
Thank you