#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Non-Functional Testing

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:

  1. Find today's data size. Count the rows in the main tables, the number of files stored and the size of the database.
  2. Estimate growth. Ask how many new records are added per day or month and how long data is kept before archiving.
  3. Choose target volumes. Test at the expected future size and at a multiple of it, so you learn where performance starts to fall.
  4. Pick the operations to measure. Searches, reports, exports, batch jobs, backups and page loads that list records are the usual suspects.
  5. 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 typeWhat growsMain question
VolumeAmount of stored dataDoes the system stay fast with a big database or file store?
LoadNumber of users or requestsDoes it handle the expected traffic?
StressTraffic beyond the limitHow does it fail and recover?
ScalabilityResources such as serversDoes adding capacity improve performance?

Problems Volume Tests Commonly Uncover

  • Missing indexes that only hurt once a table is large.
  • Pagination using large OFFSET values, 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.

Explore Course