[KongchangAI]
ProductCloud Firestore

Firestore

A NoSQL cloud database service provided by Firebase, designed for mobile and web application development. It supports real-time data synchronization, offline access, and flexible security rules configuration.

Core Facts

Timeline (last 90 days)

Oct 23

Firestore does not support complex transactional queries across documents, and denormalized redundancy is a common practice.

Unverified50%
Oct 23

The complete response is returned to the client as an inline card and is written to Firestore only after the user clicks "accept", in order to avoid ghost overwrites.

Unverified50%
Oct 23

For storing the weekly view, the "loose-leaf notebook" approach was ultimately chosen, i.e. one document holds the whole week with each day's training nested inside, so that all information is retrieved with a single database call.

Unverified50%
Oct 23

Firestore billing and latency are calculated by the number of documents read and written: reading N documents in a subcollection counts as N reads, while reading multiple fields in a nested document counts as only one read.

Unverified50%
Oct 23

The maximum Firestore document size is 1 MiB.

Unverified50%
Oct 22

Testing revealed a production risk of conflicts between SQLite writes and cloud storage; the patch was not sufficient to solve it, so the entire persistence layer was migrated to Firestore, which is now live.

Unverified50%
Oct 22

Firestore is a managed document database that provides transactions, concurrency control, and horizontal scaling, naturally suited to stateless containers and multi-instance deployment; the cost is that the data access layer must be rewritten and the differences in document model and query approach must be accepted.

Unverified50%
Oct 20

Google Cloud Skills cover individual implementation modules within an architecture, such as deploying an API to Cloud Run or connecting Cloud Run with Firestore.

Unverified50%
Oct 20

The architecture chosen in the demo was: the feedback API deployed on Cloud Run, Firestore used to collect raw feedback, raw data synced to BigQuery for analysis, and finally a dashboard presented in Looker.

Unverified50%
Oct 13

After integrating Firestore, the overall data flow is: Firestore data → app logic → Firebase AI Logic → Gemini → AI response.

Unverified50%

29 more timeline events

All Facts (20)

Verified

Firebase AI Logic packages Google Cloud's Gemini model capabilities into an SDK suitable for direct client-side invocation, with built-in API Key management, security rules integration, and linkage with the Firebase ecosystem such as Firestore and App Check.

65%
Verified

Cloud Firestore is a NoSQL document database where single-field queries are automatically indexed, but composite queries involving multi-field filtering or sorting must have composite indexes created manually.

65%
Unverified

Firestore's default test mode allows anyone to freely read and write all data, and misconfigured Security Rules can lead to data leaks or high bills.

60%
Unverified

For storing the weekly view, the "loose-leaf notebook" approach was ultimately chosen, i.e. one document holds the whole week with each day's training nested inside, so that all information is retrieved with a single database call.

50%
Unverified

The complete response is returned to the client as an inline card and is written to Firestore only after the user clicks "accept", in order to avoid ghost overwrites.

50%
Unverified

Firestore does not support complex transactional queries across documents, and denormalized redundancy is a common practice.

50%
Unverified

Firestore billing and latency are calculated by the number of documents read and written: reading N documents in a subcollection counts as N reads, while reading multiple fields in a nested document counts as only one read.

50%
Unverified

The maximum Firestore document size is 1 MiB.

50%
Unverified

Firestore is a managed document database that provides transactions, concurrency control, and horizontal scaling, naturally suited to stateless containers and multi-instance deployment; the cost is that the data access layer must be rewritten and the differences in document model and query approach must be accepted.

50%
Unverified

Google Cloud Skills cover individual implementation modules within an architecture, such as deploying an API to Cloud Run or connecting Cloud Run with Firestore.

50%
Unverified

After integrating Firestore, the overall data flow is: Firestore data → app logic → Firebase AI Logic → Gemini → AI response.

50%
Unverified

A typical complete request flow is: the user initiates a request, AI Logic calls Gemini, Firestore provides the data, Gemini generates a response, and the app processes the result and ultimately presents it to the user.

50%
Unverified

In RAG design, the scale of retrieval results must be controlled: stuffing in too many documents drives up token costs and dilutes key information; and retrieval must occur within the scope of data the user has permission to access to avoid indirect leakage of unauthorized data.

50%
Unverified

In the Firestore scenario, the retrieval step of RAG is usually implemented with vector search or ordinary queries filtered by field.

50%
Unverified

RAG first retrieves segments relevant to the user's question from its own data sources, then stitches these segments into the prompt as context for Gemini to generate an answer, which differs from fine-tuning that fixes knowledge into the model weights.

50%
Unverified

Budget Lover's tech stack includes Flutter and Dart, Provider for state management, Firebase Authentication and Firestore, Firebase AI Logic with Gemini, and Flutter's PDF and printing packages.

50%
Unverified

Both Firestore and Realtime Database support real-time data synchronization, but Realtime Database has lower latency and near-instant synchronization, while Firestore is more suitable for scenarios with complex structures.

50%
Unverified

The course recommends using Firestore for apps with complex data and many fields such as e-commerce and bookkeeping apps, and using Realtime Database for scenarios requiring zero-latency push such as real-time chat, online status, real-time location and notifications.

50%
Unverified

The free quotas of Firestore and Realtime Database are each 1GB of data storage, and notification and analytics services are basically unlimited; at the initial stage no payment is needed, but the free quotas have limits.

50%
Unverified

Firestore's Production Mode denies all unauthenticated read and write requests by default, making it more secure than test mode.

50%

Source Articles