Skip to content

SQL Connect - SQLite client cache block the main isolate #10776

Description

@wer-mathurin

[REQUIRED] Environment info

Firebase-cli 15.21.x
MacOS

[REQUIRED] Expected behavior

Do not block the Dart main isolate

[REQUIRED] Actual behavior

connector.yaml enabl the Data Connect SDK's persistent client cache (clientCache: maxAge: 5s). In firebase_data_connect 0.3.0, every query on a cache-enabled connector — even serverOnly — synchronously dehydrates the entire response and writes one SQLite transaction per entity on the main isolate before returning. With the 1000 payloads that meant thousands of main-thread SQLite writes (measured: 1.7–3.3 s hard freeze, growing with cache size). The cache served nothing: 5 s maxAge, all other reads serverOnly, no cacheOnly/subscribe usage.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions