alec
04/19/2023, 4:51 PMeygraber
04/19/2023, 5:21 PMjw
04/19/2023, 5:29 PMalex.krupa
04/19/2023, 5:52 PMArun Joseph
04/19/2023, 8:00 PMdatabaseQueries
.selectAllItems {
// mapper
}
.asFlow()
.mapToList()
.flowOn(dispatcher)
I find that mapToList
can be concurrently executed by flow collections, and causes android.database.sqlite.SQLiteBlobTooBigException
by with cursor filled to maximum. Is there any API option to prevent this? I changed the construct to
.asFlow()
.map { query ->
mutex.withLock {
withContext(dispatcher) {
query.executeAsList()
}
}
}
.flowOn(dispatcher)
and this fixes the exception. Is this the common way to fix such a problem?saket
04/19/2023, 8:03 PMmapToList()
calls the same executeAsList
function so you should see the same resultsaket
04/19/2023, 8:03 PMArun Joseph
04/19/2023, 8:04 PMkevin.cianfarini
04/19/2023, 8:04 PMArun Joseph
04/19/2023, 8:06 PMexecuteAsList
is entered concurrently from different threads. I feel its thread safe, but quickly fills curser window size.Arun Joseph
04/19/2023, 8:09 PMmutex
to prevent concurrent execution of executeAsList
kevin.cianfarini
04/19/2023, 8:09 PMsaket
04/19/2023, 8:10 PMArun Joseph
04/19/2023, 8:14 PMsaket
04/19/2023, 8:18 PMDerek Ellis
04/19/2023, 8:19 PMArun Joseph
04/19/2023, 8:23 PMkevin.cianfarini
04/19/2023, 8:27 PMstore each coordinate pair along the line as a separate row (similar to what SpatiaLite or a geopackage would do).That’s what I thought
selectAllItems
did 🥴kevin.cianfarini
04/19/2023, 8:28 PMjessewilson
04/20/2023, 2:17 AMthis.
in any scope is fantastic. I’ll convert every cashapp project that they let me.jw
04/20/2023, 2:31 AMthis
and see the same thing as Kotlin is a bug report that should go to Gradle for a missing Action
overload that's still using Closure
Marco Pierucci
04/20/2023, 1:35 PMStefan Oltmann
04/21/2023, 6:33 AMisStatic = true
, which results in errors similar to the ones mentioned in this post: https://github.com/cashapp/sqldelight/issues/2512
Can you confirm that right now SQLDelight can't be used in a static XCFramework?
Is there explanation why? Does that mean I need to put Compose into a separate XCFramework?Marcelo Hernandez
04/21/2023, 7:13 PMMonotonicFrameClock
for iOS?Kiprop Victor
04/25/2023, 9:58 AMColton Idle
04/25/2023, 12:59 PMjw
04/25/2023, 1:04 PMjw
04/25/2023, 1:06 PMDISCONNECT_AFTER_REQUEST
or one of the DISCONNECT_DURING_*
onesjw
04/25/2023, 1:07 PMNO_RESPONSE
and STALL_SOCKET_AT_START
are good for testing timeoutsrusshwolf
04/26/2023, 12:42 PM