Skip to Main Content
Sustainable Web Design Logo
  • Home
  • Guidelines
  • Emissions
  • Ratings
  • Contact

◂ Web Development guidelines

3.16 Reduce the number and complexity of database queries

Web Development

Optimize database use by minimizing and scoping queries, reducing repeated requests, and applying data governance practices.

Success Criteria

  • Database queries:
    Optimize database queries to reduce load by retrieving required data in as few queries as possible, and by applying filtering and selection at the database level rather than in application or ORM code, especially for frequently accessed data.
  • Database queries:
    Retrieve data only once per request or process and reuse it locally instead of repeating database queries.
  • Database queries:
    Scope database queries to return only the fields and records that are required.
  • Database queries:
    Apply data lifecycle and governance controls such as Time-to-Live (TTL), use of non-sensitive identifiers like UUIDs, de-identification, and minimization of stored data in line with purpose limitation principles.

View the Guideline

Tags

NetworkingPerformance

Share

More web development guidelines

3.1 Set goals based on performance and energy impact

Web Development

3.2 Minify and remove unused code

Web Development

3.3 Modularize bandwidth-heavy components

Web Development

Learn about W3C’s Sustainable Web Interest Group:

A global community advancing sustainability on the web.

Explore the group

This site is brought to you by

Mightybytes Wholegrain Digital
Website Carbon

This page loaded in 0.25 seconds and emitted just 0.5g of CO2

Visit Website Carbon
Ecograder

How green is your website?

Visit Ecograder
© Copyright Sustainable Web Design 2026. Privacy Policy.