Limits and Growth: Records, Indexes, Automation Runs and Cost Projections
Plan for the app to grow: see what an index does to a lookup in a table of 200,000 rows with a real query plan and a real measurement, project when you will hit the record and automation limits of a plan, and check the projections in two languages.
In this lesson you will
- Anticipate plan limits
- See the effect of an index
- Project growth with compound rates
- Estimate costs and check the arithmetic
About 28 minutes
When the free plan runs out
Tomás’s app works beautifully with a hundred volunteers and a few thousand signups. Two years later the food bank has twelve hundred volunteers and the screens are slow, the free plan has stopped accepting records, and the automation that alerts on low stock has used up its monthly runs on the 12th. No-code platforms have limits, usually on the number of records, the number of users, automation runs per month, storage and sometimes the speed of queries, and the limits are tied to plans with prices. Planning for them before you meet them is cheap, and meeting them by surprise is not.
Two kinds of growth matter. The size of the data grows, and queries that scan every row get slower as it does: a lookup that takes a fraction of a millisecond in a table of a thousand rows takes thousands of times longer in a million rows unless there is an index, a sorted structure that lets the database jump to the right rows, as the Back-end course showed. Platforms usually index their keys and sometimes the fields you filter by, and a filter on an unindexed field in a large table is the usual reason that a view becomes slow. The second kind of growth is use: signups, records and automation runs grow with the number of people, often by a steady percentage per month, which is compound growth. With a growth rate g per month, the quantity after m months is the start times (1 + g) to the power m, and the month in which it reaches a limit L is log(L / start) divided by log(1 + g).
| Resource | Typical limit | What to do |
|---|---|---|
| Records | Per table or per base | Archive old data, split tables |
| Automation runs | Per month | Edge-triggered rules, batch actions |
| Users | Per plan | Share logins carefully, never share passwords |
| Query speed | Depends on indexes | Filter on indexed fields, limit rows |
| Storage | Files and attachments | Compress images, delete old files |
import sqlite3, time, json, random
rng = random.Random(1)
db = sqlite3.connect(":memory:")
db.execute("CREATE TABLE signups (id INTEGER PRIMARY KEY, volunteer_id INTEGER, shift_id INTEGER, note TEXT)")
N = 200000
db.executemany("INSERT INTO signups VALUES (?,?,?,?)", ((i, rng.randrange(1, 5001), rng.randrange(1, 4001), "n") for i in range(1, N + 1)))
Q = "SELECT COUNT(*) FROM signups WHERE volunteer_id = ?"
def timed(reps=200):
t = time.perf_counter()
for k in range(reps): db.execute(Q, (1 + k * 7 % 5000,)).fetchone()
return (time.perf_counter() - t) / reps
plan_before = db.execute("EXPLAIN QUERY PLAN " + Q, (42,)).fetchall()[0][3]
before = timed(30)
db.execute("CREATE INDEX idx_signups_volunteer ON signups(volunteer_id)")
plan_after = db.execute("EXPLAIN QUERY PLAN " + Q, (42,)).fetchall()[0][3]
after = timed(2000)
same = db.execute(Q, (42,)).fetchone()[0] == sum(1 for r in db.execute("SELECT volunteer_id FROM signups") if r[0] == 42)
print("rows in the table:", N)
print("plan without an index:", plan_before)
print("plan with an index :", plan_after)
print("the index makes the lookup at least 20 times faster:", before / after > 20, "| results identical to a full scan:", same)
print("DATA " + json.dumps({"n": N, "b": plan_before, "a": plan_after, "fast": before / after > 20, "same": same, "ratio_order": int(len(str(int(before / after))))}))
rows in the table: 200000
plan without an index: SCAN signups
plan with an index : SEARCH signups USING COVERING INDEX idx_signups_volunteer (volunteer_id=?)
the index makes the lookup at least 20 times faster: True | results identical to a full scan: True
const start = { records: 4000, runs: 600, volunteers: 100 }, g = { records: 0.09, runs: 0.07, volunteers: 0.05 };
const limits = { records: 50000, runs: 2000 };
const project = (k, m) => start[k] * Math.pow(1 + g[k], m);
const monthsTo = (k, L) => Math.log(L / start[k]) / Math.log(1 + g[k]);
const rows = Object.entries(limits).map(([k, L]) => ({ k, L, months: monthsTo(k, L), firstFull: Math.ceil(monthsTo(k, L)) }));
rows.forEach(r => console.log(r.k.padEnd(8), 'reaches', r.L, 'after', r.months.toFixed(1), 'months (the limit is hit in month', r.firstFull + ')'));
console.log('after 24 months: records', Math.round(project('records', 24)), '| runs per month', Math.round(project('runs', 24)), '| volunteers', Math.round(project('volunteers', 24)));
const plans = [['Free', 0, 1000, 5000], ['Team', 29, 20000, 10000], ['Business', 79, 100000, 50000]];
const need = { records: Math.round(project('records', 24)), runs: Math.round(project('runs', 24)) };
const fit = plans.find(p => p[2] >= need.records && p[3] >= need.runs);
console.log('plan that fits month 24 (invented plans: name, price, records, runs):', fit[0], 'at', fit[1], 'per month');
console.log('DATA ' + JSON.stringify({ rows, m24: [project('records', 24), project('runs', 24), project('volunteers', 24)], fit: fit[0] }));
records reaches 50000 after 29.3 months (the limit is hit in month 30)
runs reaches 2000 after 17.8 months (the limit is hit in month 18)
after 24 months: records 31644 | runs per month 3043 | volunteers 323
plan that fits month 24 (invented plans: name, price, records, runs): Business at 79 per month
The first experiment builds a table of 200,000 signups and asks for the signups of one volunteer. Without an index, the plan says “SCAN signups”: the database reads every row. After CREATE INDEX on the volunteer column, the plan says “SEARCH signups USING COVERING INDEX idx_signups_volunteer (volunteer_id=?)”, a direct lookup, and the program measured that the lookup became more than 20 times faster (in practice by far more, though exact times depend on the machine), while the answer stayed identical to a full scan of all rows, which the program checks. In a no-code tool you do not write the index, but the lesson is the same: filter and sort on fields that the platform indexes, such as keys and linked records, keep large tables small by archiving old rows, and test a view with realistic volume before you rely on it.
The second program projects growth with invented numbers: 4,000 records growing 9 percent a month and 600 automation runs a month growing 7 percent a month, against limits of 50,000 records and 2,000 runs. The records reach their limit after 29.3 months, so the limit is hit in month 30, and the runs reach theirs after 17.8 months, month 18. The automation limit comes first, in under a year, long before anyone thinks of the record limit. After 24 months the app would hold about 31,644 records and need 3,043 runs a month for 323 volunteers, and of three invented plans, only the Business plan has room for it. Seeing this a year in advance gives time to cut runs with edge-triggered rules, archive records or negotiate, instead of finding out when the alerts stop.
Independent check: the query plans come from the database itself, and the measured speed-up has a large margin over the threshold. The months to reach a limit were computed from the logarithm formula in JavaScript and checked in Python, once with the same formula and once by repeating the monthly growth step by step until the limit is passed, a method that uses no logarithms. Both give the same month for the records and for the runs. The 24-month values were recomputed with Python’s power operator and agree.
Check by hand: 4,000 records growing 9 percent a month need log(12.5) / log(1.09) = 2.526 / 0.0862 = 29.3 months to reach 50,000, so in month 30. For the runs, 600 to 2,000 is a factor of 3.33, and log(3.33) / log(1.07) = 1.204 / 0.0677 = 17.8, so month 18. Growth rates this large are examples, and your own data tells you the real ones.
Check the limits of the plan before you put important processes on it, and know the price of the next plan. A sudden limit on a rota or a stock alert is a real problem for the people who rely on it.
Look at records, runs and storage once a month and write the growth rate down. Projections need only two numbers, and they turn a surprise into a plan.
No-code platforms, plans and limits change often, so the lessons describe categories of tools with generic names and you must check each vendor’s current website. The ideas of this course, data tables, forms, views, automations and permissions, are what the tools implement, so the lesson reproduces them in small programs, run in Python 3.13 or Node.js 22 on sample data, with a second independent calculation. The plans, prices and limits in this lesson are invented. Real platforms change theirs often, so check the current pricing page and the documentation of limits.
Practice
Count the records and automation runs of an app of your own, estimate monthly growth and find the month in which you reach each limit. Find the slowest view of an app and think about which field it filters on. Reduce the automation runs by changing one rule to edge-triggered.
Check what you learned
Five quick questions. Pick an answer and you will see straight away whether it is right and why.
What does an index do?
- Deletes old rows
- Encrypts rows
- Changes the data
- Lets the database jump to rows instead of scanning all
SCAN versus SEARCH using an index.
How do you project compound growth?
- start + rate x months
- start / rate
- start x (1 + rate) to the power of months
- rate x months
Percent growth per month.
Which limit did the lesson’s example reach first?
- Records
- Users
- Automation runs
- Storage
Month 18 against month 30.
How can you cut automation runs?
- More rules
- Edge-triggered rules and batching
- Shorter names
- Bigger tables
Fewer, smarter triggers.
Why check a projection in two ways?
- To make it complex
- A formula and a step-by-step recount catch mistakes
- It is required
- Plans require it
Independent checks.
Summary
- Platforms limit records, runs, users and storage; know the plan’s limits.
- Indexes make lookups fast; scans slow down as tables grow.
- Compound growth: months to a limit = log(limit / start) / log(1 + rate).
- Review usage monthly and project ahead.
Questions
What should I do when I hit a limit?
Check what you can archive or reduce first, then compare the next plan's price with the cost of moving, and plan the change at a quiet time, with a backup of your data.
Do platforms slow down with big tables?
Often, especially for views that filter on unindexed fields or for formulas across many linked records. Test with a realistic amount of data.
Should I plan to move off the platform?
Know how: keep exports of your data and a description of your logic, so that moving is possible if you must.
