Hi, What would be the best way to increase the grpc channel size to support writing very large datasets to spicedb? I tried updating the maxInboundMessageSize property for the ManagedChannel but it doesn't seem to help in writing datasets more than 4mb.
sfzuri_17785
12/05/2023, 11:52 AM
//current channel configuration
val channelSize = 40971520
@Bean
fun managedChannel(): ManagedChannel {
return ManagedChannelBuilder
.forTarget(spicedbConfigurationProperties.targetUri)
.maxInboundMessageSize(channelSize)
.apply {
if (spicedbConfigurationProperties.useTLS) useTransportSecurity()
}
.apply {
if (spicedbConfigurationProperties.usePlainTextConnection) usePlaintext()
}
.build()
}
v
vroldanbet
12/05/2023, 1:13 PM
Please note that very large writes are not advisable as it would cause contention on the database. For backfilling or initial imports we recommend using the
BulkImport
API
vroldanbet
12/05/2023, 1:13 PM
Hi, what led you to conclude that the problem was the gRPC buffer size?