algolia-cost-tuning

Featured

Optimize Algolia costs: understand search request vs record pricing, reduce operations with batching and caching, monitor usage via Analytics API. Trigger: "algolia cost", "algolia billing", "reduce algolia costs", "algolia pricing", "algolia expensive", "algolia budget".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Algolia Cost Tuning ## Overview Algolia pricing is based on **search requests** and **records**. A search request is one API call (which may contain multiple queries via `search({ requests: [...] })`). Records are counted across all indices including replicas. ## Pricing Structure (2025) | Plan | Records Included | Search Requests | Additional Cost | |------|------------------|-----------------|-----------------| | Build (Free) | 1M records | 10K requests/mo | N/A | | Grow | 100K free, then $0.40/1K | 10K free, then $0.50/1K | Pay as you go | | Grow Plus | 100K free, then $0.40/1K | 10K free, then $1.75/1K | + AI features | | Premium | Custom | Custom | Volume discounts | ### What Counts as Records - Every object in every index = 1 record - Standard replicas duplicate records (multiply your count) - Virtual replicas share records (no extra cost) - Synonyms and rules do NOT count as records ### What Counts as Search Requests - `searchSingleIndex()` = 1 request - `search({ requests: [q1, q2, q3] })` = 1 request (multi-query) - `browse()` = 1 request per page - `saveObjects()` = NOT a search request (indexing operations are free) ## Instructions ### Step 1: Audit Current Usage ```typescript import { algoliasearch } from 'algoliasearch'; const client = algoliasearch(process.env.ALGOLIA_APP_ID!, process.env.ALGOLIA_ADMIN_KEY!); // Check total records across all indices const { items } = await client.listIndices(); let totalRecords = 0; let replicaRecords = 0; items...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category