As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Hi Oliver,
You don't need to create a collection specifically. If you run an insert query for a new collection name, the new collection will be created automatically and the data will be inserted. This is because Kinvey uses mongoDB in the backend and that's how mongoDB works.
Previously, I got the impression that the first insert needs to happen at the time of user creation. That's why I suggested onPostSave BL. If that's not the case, then you can skip that part altogether and call the first insert statement whenever you get the first log from the new users' devices.
As for the reason to not recommend it, this will become a bit difficult to manage as the number of users grows. Also, if you want run aggregation/ETL on the data in the future, it will help if you have single/few collections. And with hundreds/thousands of collections, you might run into issues while accessing the data in console as well.
If you want to keep the data separate from a security standpoint, you can use a common collection for all device data for all users or common collections (one per device type) depending your use case, and then make the collection(s) private so that a user will be able to see and modify only his data.
Let me get another set of eyes to look at this in case I have missed something.
Regards,
Wani
Hi Oliver,
You can do this by setting up onPostSave BL for users.
While Kinvey doesn't specifically restrict this, I wouldn't recommend it.
Can you tell me more about the use case? And also the number of users, size of data per user etc.
Regards,
Wani
Revilo