question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, im storing some jsons in a database, since they are not worth normalizing. Now its a TEXT, but I was wondering if storing them as BLOB would be better, but then I noticed

override fun <T : Any> all(mapper: (id: String, body: ByteArray?) -> T): Query<T> =

i.e. the bytearray is already in memory so its a moot point. Is it possible to have it streamed somehow so I can leverage moshi’ streaming capability?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Chuckytuhcommented, Jul 10, 2020

This is actually something I’ve been looking for. The AndroidSqliteDriver is a no go for this, but would it be possible to leverage the current NativeSqliteDriver (sqliter) to expose https://sqlite.org/c3ref/blob_read.html and use the NativeSqliteDriver on Android targets? Not quite sure about the current Android support on NativeSqliteDriver though.

0reactions
AlecStrongcommented, Feb 18, 2020

yea and in addition to that we’d have to add those apis to the sqldelight runtime. Seems like a lot of effort, though I could see it being important to support at some point

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blob.stream() - Web APIs - MDN Web Docs
The Blob interface's stream() method returns a ReadableStream which upon reading returns the data contained within the Blob . Syntax. stream()
Read more >
Understanding blob url video streaming - javascript
My question is how does this process, of streaming video through a blob url, work? javascript · video-streaming · blob · bloburls ·...
Read more >
blob-stream | Yarn - Package Manager
A Node-style writable stream for HTML5 Blobs, mostly useful in Browserify. Allows you to take the output of any Node stream, and turn...
Read more >
devongovett/blob-stream: A Node-style writable ... - GitHub
A Node-style writable stream for HTML5 Blobs, mostly useful in Browserify. Allows you to take the output of any Node stream, and turn...
Read more >
Streaming large blobs through ASP.NET | ticehurst.com
Our service fetches a blob from Azure Blob Storage and pipes it back to the client. How should this work? Streaming Azure Blob...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found