Replies: 1 comment
-
Hello @mickeyl, Your question is more about database schemas than GRDB itself, so it's somewhat out of scope. Yet, here are some hints:
|
Beta Was this translation helpful? Give feedback.
-
Hello @mickeyl, Your question is more about database schemas than GRDB itself, so it's somewhat out of scope. Yet, here are some hints:
|
Beta Was this translation helpful? Give feedback.
-
For several years I have been (successfully) working with various NoSQL-databases on the server and YapDatabase on the (mobile) client. Since GRDB seems to be better suited for the new world of SwiftUI and Swift Concurrency, I want to give it a try.
YapDatabase's idea is to use SQLite as a pretty dumb storage where only the relevant meta information gets stored in "the usual" columns, but the actual model object is stored as an encoded BLOB. I wonder whether I should continue with this strategy or whether I should reconsider this and do some actual actual table design.
As an example: My current app wants to hold a bunch of
VehicleScan
objects in a database. A scan roughly looks like that:The heart of the information is contained in the
UDS.CaptureFile
, which in turn looks like that:and last but not least, a
UDS.Message
is simple that:What's the best strategy for storing such a nested structure of
VehicleScan
objects with GRDB?Beta Was this translation helpful? Give feedback.
All reactions