Aiven / EverSQL service

EverSQL.

SQL query analysis and index recommendations

4.43 / 5Directory score
Official website

The optimizer analyzes queries and suggests changes to the query or indexes. Compare the result and load should be on a comparable set of data.

EverSQL page introducing the SQL query optimizer
EverSQL page introducing the SQL query optimizer. Open the source

Choose a repeatable example

For the training report, you need to find orders for the period and attach their positions. If such a request is slow, save its text and execution plan on the test database. Write down also the number of orders found. EverSQL accepts the request for analysis and gives recommendations on its form or indices. It is useful to first understand what step of the plan will change, and only then apply the proposed amendment.

The length of the query text itself says little about cost. Pay attention to the number of lines processed and the amount of data at each step.

Check that the results are equivalent

Run the initial and proposed versions on one copy of data. If a new way to connect tables has appeared, compare repeating rows and orders without positions. The allowable speed increase is important only with a comparable result. For an index, check the operation of the request with small and large periods. If the filter selects almost the entire table, the server may prefer another plan.

Test before changing a production database

A quick example can run for a long time at real volume or increase the cost of writing after adding an index. Compare options on a copy that corresponds to the size of the worksheets and discuss the change with the owner of the database. From the data transferred to an external service, remove credentials and closed names if the team rules require it. The official documentation separately describes support for PostgreSQL and MySQL.

Suitable tasks

  • Solve a slow SQL query
  • Compare execution plans
  • Check the index advice
Features

Strengths

  • Automatic optimization of PostgreSQL and MySQL requests is described
  • Recommendations on request structure and indices
Things to consider

Limitations

  • The proposed request should be checked for equivalence
  • The use of indices depends on the data and the type of load

Selection and conditions

Free access
Not confirmed
Trial period
Not confirmed
No sign-up required
Not confirmed
Russian interface
Not confirmed
Local installation
Not confirmed
API
Not confirmed

“Not confirmed” means there is not enough information. The feature may still be available; check the developer’s terms.

Input formats
Code, Scheme
Result
Code, Instruction

Terms

The proposed request should be checked for equivalence

From task to first result

Practical example

Task
Solve a slow SQL query
What to prepare
A practice query joining two tables and filtering by date.

Task brief or prompt

Suggest improvements to the request. Explain what step in the plan should change, and list cases to verify equivalence.

Expected result

Modified request or index proposal with verification plan.

How to check the result

  • Look at the repetitions.
  • Compare the plans on the same dataset.

An editorial teaching example of a task brief, not the result of hands-on testing of the service. Check that the required mode is available, that you have rights to the source material and that the intended use of the result is permitted.

Check details

Official sources

  1. Official EverSQL page
  2. Official SQL Optimization Guide
  3. SQL Optimizer

This description is based on the developer’s material. Features, prices and availability may change; check the primary source before use.