Glossary

Algorithm Complexity (Big O)

Big O notation is a way to describe how the execution time or memory usage of an algorithm grows with input size n. It lets you compare algorithms independently of hardware.

Common classes

In practice

A SQL query without an index is O(n). With an index it is O(log n). That is why indexes matter 100× more than optimising application code.