Databases Flashcards

1
Q

How do indexes improve db performance?

A

Indexes can greatly improve read speed by creating a b-tree for the value you need to search. So instead of search o(n) all the rows youre really search o(log n) - the tree. This can intern slow down write speed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a b-tree?

A

B-trees are self balancing but the b does not stand for balanced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly