-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed Schema Changes #156
Comments
Is the Datum If per point (or eventually maybe even a list/array of timestamps corresponding to a stack of images for a single point), then it would be good to have another key to describe how the time stamp was generated (default, cpu time recorded into the database). However, timestamps can be generated by the firmware or IOC of the device or from a TTL pulse that doesn't come from the same IOC or something else. For clarity and future proofing, it might be good to include timestamp origin/provenance key |
The proposed Datum |
I 50/50 on adding the simpler spelling, but not convinced that we want to deprecate datum as-is. |
I have come to the same feeling, reflecting on this in the weeks since I last updated the description. We might as well keep the flexibility of Datum around and simply add Partition as simpler, more locked-down, spec. |
This is a long-term proposal, unrelated to databroker 1.0 or any of the upcoming release.
The following changes have been previously proposed and discussed at various times. Many are mutually un-coupled and could be considered separately. At some point we should decide which ones we want to do and execute them all in one step, tagging event-model 2.0.0.
Datum
time
key.index
key with a unique monotonically increasing integer.datum_id
which would no longer be needed because(resource_uid, index)
would be a unique key. Event documents would still refer to a Datum via a construction like the currentdatum_id
, i.e. a string like{resource_uid}/{index}
datum_kwargs
and replace them with slice fields:start
,stop
, andstep
. All Datum documents would now have the same fields, and handlers could be simplified.Change (4) might justify creating a new document (called "Partition", in view of its role as a 1-D slice?) and deprecating Datum rather than making major breaking modifications to Datum.
Resource
version
, referring the version of thespec
, with an associated schema maintained with the handler. This will get a lot of use if (4) is accepted because all the handlers will be simplified.Event
index
key with a unique monotonically increasing integer.uid
which would no longer be needed because(descriptor, index)
would be a unique key.The text was updated successfully, but these errors were encountered: