Use auto DataType instead of Encoder #1446
jieguangzhou
started this conversation in
Ideas
Replies: 1 comment
-
@jieguangzhou agreed. However I have concerns about performance. Suppose that I have a very large update. Then I have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we often need to explicitly specify an Encoder to address the storage of certain data types in a database. However, for most users' needs, they may not need to understand how to set this Encoder. We can set preset DataTypes for common data types in the machine learning field, to automatically handle these logics.
Users no longer need to explicitly worry about how data is converted and stored in the database, as all of this is automatically completed by SuperDuperDB.
For example, when reading data, do not use
unpack
, because the data users get should be post-unpack. Keep the data the same before insertion and after reading, so users should not need additional operations.Data Interaction
Inserting data
Reading data
Model Output Interaction
When inserting model output data
We need to automatically detect the model's results and convert them into specific data that the database can store.
When reading model output data
We need to automatically restore the data.
DataType (Currently Known as Encoder)
Preset DataType
Custom DataType
This is similar to our current Encoder. Users can set DataType to convert data according to their preference. If set, the user-defined DataType will be used; otherwise, our preset DataTypes will be used.
Beta Was this translation helpful? Give feedback.
All reactions