Volume Testing
What is Volume Testing?
Volume testing (also known as flood testing) evaluates how the application handles a large volume of data in the database or file system, checking for performance degradation.
Key Aspects Verified
- Application performance when the database is filled with a large number of records.
- Whether queries, searches, and reports still perform acceptably at scale.
- Storage and memory behaviour when handling large data volumes.
Why It Matters
Volume testing helps ensure an application will continue to perform well as real-world data accumulates over time, not just with a small test dataset.
Planning a Volume Test
A useful volume test starts with clear numbers from the business, not random guesses. Work through these steps:
- Find today's data size. Count the rows in the main tables, the number of files stored and the size of the database.
- Estimate growth. Ask how many new records are added per day or month and how long data is kept before archiving.
- Choose target volumes. Test at the expected future size and at a multiple of it, so you learn where performance starts to fall.
- Pick the operations to measure. Searches, reports, exports, batch jobs, backups and page loads that list records are the usual suspects.
- Agree on pass criteria. For example, a search must return within an agreed time and a nightly job must finish before the business day begins.
Generating Realistic Test Data
Copying production data is often not allowed because of privacy rules, so testers generate synthetic data. In PostgreSQL, generate_series can create millions of rows with a single statement:
INSERT INTO orders (customer_id, order_date, amount)
SELECT (random() * 50000)::int + 1,
NOW() - (random() * INTERVAL '730 days'),
round((random() * 5000)::numeric, 2)
FROM generate_series(1, 5000000);
ANALYZE orders;
EXPLAIN ANALYZE
SELECT customer_id, SUM(amount)
FROM orders
WHERE order_date >= NOW() - INTERVAL '30 days'
GROUP BY customer_id;
The EXPLAIN ANALYZE output shows how long the query took and whether it scanned the whole table. Libraries such as Faker (Python) help when you need realistic names, emails and addresses. Keep the data distribution realistic: if real customers place many orders each, your generated data should too, otherwise indexes behave differently.
Volume, Load, Stress and Scalability: Not the Same Test
| Test type | What grows | Main question |
|---|---|---|
| Volume | Amount of stored data | Does the system stay fast with a big database or file store? |
| Load | Number of users or requests | Does it handle the expected traffic? |
| Stress | Traffic beyond the limit | How does it fail and recover? |
| Scalability | Resources such as servers | Does adding capacity improve performance? |
Problems Volume Tests Commonly Uncover
- Missing indexes that only hurt once a table is large.
- Pagination using large
OFFSETvalues, which gets slower on later pages. - Reports or exports that load everything into memory and crash.
- Log tables and audit trails that grow without any cleanup.
- Backups and restores that no longer fit in the maintenance window.
- Disk space alarms on the database or file server.
Mistakes to avoid
- Running the test on a laptop database and expecting the results to match production hardware.
- Generating data with no relationships, so joins return almost nothing.
- Measuring only once; repeat runs to rule out caching effects.
Checklist: agree target volumes, generate realistic data, measure key operations, compare against pass criteria, and retest after each fix.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.