parade_pricing() returns ParadeDB SaaS price tiers directly from SQL.
The function parade_pricing() ships with the ParadeDB extension and exposes ParadeDB’s public price list as a queryable table. Use it to surface cost details inside dashboards, alerts, or automated cost-calculation jobs without leaving SQL.
Embed live pricing in admin portals, join price data to product margins, or trigger alerts when ParadeDB costs approach budget limits. Pulling the data from the database avoids brittle API calls in application code.
Install the ParadeDB extension once per database: CREATE EXTENSION IF NOT EXISTS paradedb;
. The parade_pricing() function becomes available automatically.
Specify currency, billing_cycle, and plan_name to narrow results. Omit a parameter to get all prices. Each argument is optional and defaults to NULL, meaning “no filter.”
Yes. Because parade_pricing() returns a record set, you can JOIN
it to Orders, Customers, or Products. This enables margin calculations, cost rollups, or UI displays that combine internal and ParadeDB data.
Cache pricing for 5–15 minutes in a materialized view to avoid repeated network calls. Index on columns you filter by most (e.g., plan_name) for faster lookups. Always select only needed columns.
Calling parade_pricing() inside large loops causes unnecessary network traffic; instead, query once and reuse the result. Forgetting to set the correct currency leads to mismatched numbers in international dashboards.
Yes. The function fetches pricing from ParadeDB’s public endpoint. Ensure the database host can make outbound HTTPS requests.
ParadeDB updates prices rarely, but always cache or snapshot the result so queries remain deterministic during long transactions.
Yes. Wrap parade_pricing() in a view that multiplies unit_price by your markup factor, then expose the view to consuming apps.