firestore-database

Optimize Firestore queries, indexes, batch operations, and TTL policies.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/nhson2612/__ --skill firestore-database-nhson2612
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firestore-database
Source: https://github.com/nhson2612/__/tree/main/.claude/skills/firestore
Command: npx skills add https://github.com/nhson2612/__ --skill firestore-database-nhson2612

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers efficiently manage and query data in Firestore, addressing common performance bottlenecks and best practice gaps.

Core Features & Use Cases

  • Query Optimization: Learn how to write efficient Firestore queries using filters and limits.
  • Indexing Strategies: Understand when and how to create composite indexes, including support for sorting in both directions.
  • Batch Operations & TTL: Implement efficient batch writes and leverage Time-To-Live for automatic data cleanup.
  • Use Case: Optimize a slow-loading list of customer orders by implementing proper indexing and pagination, ensuring quick retrieval of data.

Quick Start

Use the firestore skill to optimize a query for fetching active users by their signup date.

Frequently Asked Questions about firestore-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Firestore queries for fetching active users by signup date?

Optimize Firestore queries by applying proper filters and limits to reduce document reads and ensure quick data retrieval. Use composite indexes to support sorting in both directions for efficient querying.

When do I need composite indexes in Firestore?

You need composite indexes in Firestore when running queries that filter on multiple fields or require sorting in both directions. They are essential for maintaining query efficiency as your dataset scales.

What is the best way to implement automatic data cleanup in Firestore?

The best way to implement automatic data cleanup in Firestore is by leveraging Time-To-Live (TTL) policies. TTL automatically expires and removes outdated documents without manual batch processing.

How do I fix a slow-loading list of customer orders in Firestore?

Fix a slow-loading list of customer orders in Firestore by implementing proper indexing and pagination. This strategy ensures quick retrieval of data by fetching smaller, indexed chunks.

Does Firestore batch processing improve write performance for scalable applications?

Firestore batch processing improves write performance by grouping multiple write operations into a single atomic request. This reduces network overhead and is a best practice for scalable data handling.