Overview: Cloud Firestore Solutions

As you develop your app withCloud Firestore, you might want to go beyondthe basics discussed in the manage and query data sections. The solutionsoutlined in this section offer guidance on more advanced use cases.

Integrate with BigQuery

Summary: UseFirebase Extensions to integrate data inCloud FirestorewithBigQuery

Use case: If you need to analyze large amounts of data, you can useBigQuery.

See the solution forBigQuery extensions

Implement an AI-driven chatbot

Summary: UseFirebase Extensions to add an AI-driven chatbot to yourapp.

Use case: You can use chatbots to improve customer service, market a newfeature or service, provide sales quotes, or any number of use cases. Getstarted by using these extensions.

See the solution for AI chatbot extensions

Enrich handling of text

Summary: UseFirebase Extensions to mine and analyze text data.

Use case: If you need to summarize text, detect toxic speech, translatetext, or transcribe audio, use these extensions.

See the solution for text handling extensions

Enrich value of media

Summary: UseFirebase Extensions to mine and analyze media streams.

Use case: If you need to classify images, convert speech to text, or performoptical character recognition (OCR), use these extensions.

See the solution for media processing extensions

Firestore Lite, the streamlined REST-only Firestore Web SDK

Summary: Build smaller Web apps with faster load times when offline cacheisn't important and you only need online access to your database.

Use case: If your app doesn't need to manage offline users, import@firebase\firestore-lite. Then, code features that make use of the Firestorebackend.

See the solution for Firestore Lite

Aggregation queries

Summary: Build an aggregate of your data inCloud Firestore usingtransactions andCloud Functions.

Use case: To query your data across collections, build an aggregate, thenrun the query. For example, in a recommendations app, you might want toretrieve all the information for a particular restaurant from differentcollections.

See the solution for aggregation queries

Distributed counters

Summary: Distribute updates across "counter" subcollections to update adocument more frequently thanCloud Firestore currently supports.

Use case: Use this solution to add "counters" to your app (for example, torepresent upvotes), and update the corresponding document at a high frequency.Cloud Firestore supports 2 writes/second on each document.

See the solution for distributed counters

Full-text search

Summary: Search for text contained in yourCloud Firestore documents.

Use case: Users might want to search your app content, including textcontained in individual fields across your documents and collections. Use thissolution to enable full-text search.

See the solution for full-text search

Build presence

Summary: Add a presence system that identifies whether or not a user isactively connected.

Use case: Use this solution to identify users that are actively connected toyour app. For example, in a chat app, you might use a presence system topopulate a list of users that are online.

See the solution for building presence

Secure data access for users and groups

Summary: Write security rules to control access to individual documentsbased on user roles.

Use case: Use this solution to build collaborative apps while minimizingthe risk of improper data access.

See the solution for secure data access

Schedule data exports

Summary: Use theApp Engine Cron Service to schedule exports ofyour data.

Use case: Use this solution to run export operations on a schedule.

See the solution for scheduling exports

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-18 UTC.