I've got some questions after using this library #416
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ysmoradi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
After using the CommunityToolkit.DataSync library for some time, I have a few questions/observations:
The library does not use
$batchto send all changes at once (instead of sending many separate requests), which is fine — I know implementing$batchis not easy.But when there is no benefit from
$batch, why inherit fromODataControllerinstead ofControllerBase? All OData features except$countand$batchwork perfectly well with regular API controllers too.CommunityToolkit.Datasync.Server.Swashbuckle,CommunityToolkit.Datasync.Server.NSwag,CommunityToolkit.Datasync.Server.OpenApiseems to be added for the same reason.Is there a specific reason for having both
Version(byte[]) andUpdatedAtproperties?These appear somewhat redundant, as
UpdatedAtis presumably updated every time a record is modified. In many scenarios, a timestamp alone can be used for optimistic concurrency control. UsingUpdatedAtas the concurrency token would eliminate the need for a separateVersionproperty. Am I overlooking a particular use case or requirement that justifies keeping both?Thank you for the great toolkit and for any clarification you can provide!
Beta Was this translation helpful? Give feedback.
All reactions