How do database engines manage to be so much faster at lookup / aggregation than your code?

293 views

How do database engines manage to be so much faster at lookup / aggregation than your code?

In: 1

4 Answers

Anonymous 0 Comments

its like how libraries used to have a manual index of the contents of the library that could help you narrow things down without having to search through the whole library to find some specific things.

database engines remember where things are stored so that they can be retrieved more quickly. they also use special flags called foreign keys, to navigate between related records more quickly than searching from scratch for each one.

they are also faster because they are usually implemented in languages that require less translations for the computer to understand.

You are viewing 1 out of 4 answers, click here to view all answers.