-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bois for serializing objects to store in SQLite blob? #27
Comments
It could be a good use case for it, more space saving than storing the object serialized as json .. |
In my case, the blob would be a list of lists or dictionary of lists. The list items or dictionary values may be small objects. The first few columns will be indexed and used to identify the blob. I'll then submit a query, identify the blobs I need (a thousand or so) and deserialize them. This last step could be done in parallel. Does it sound like a reasonable approach? I created a simple experiment but cannot get it to compile. I'd welcome suggestions. I use |
Hello delvewell, looks like you are trying to solve some general programming issues; specifically related to SQLite data retrieval.
e.g. |
@mousetrap-systems . I was certain that GetBlob came from System.Data.SqlClient , but I don't see it there. So, that is definitely suspect! I'll define the Type in the last line of code. I missed that. Now I have some direction. Thank you. |
Hi @delvewell , your question is more clear with the example of code.
As for the retrieval, not sure from where the extension "getBlob" come from but even with just accessing the field and cast it back as byte array should be enought and by mixing with @mousetrap-systems answer should give you something like :
|
Is serializing objects for storing in a SQLite blob column a good use case for Bois? Would that be better/faster than using some kind of ORM?
The text was updated successfully, but these errors were encountered: