Using an embedsMany relation:
"actions": {
"type": "embedsMany",
"model": "empty",
"property": "events"
}
If I send multiple [POST] /MyDocument/{id}/actions quickly on the same document ID or if the DB is slow, some data are lost. I suppose embedsMany POST fetches from DB, appends data, and save back to DB. If there is multiple operations at the same time, the saved value does not contains every posted actions.
Using an embedsMany relation:
If I send multiple
[POST] /MyDocument/{id}/actionsquickly on the same document ID or if the DB is slow, some data are lost. I suppose embedsMany POST fetches from DB, appends data, and save back to DB. If there is multiple operations at the same time, the saved value does not contains every posted actions.