Settings

Theme

Ask HN: Databases have indexes. Then why have partitions?

2 points by matc 14 years ago · 4 comments


maxdemarzi 14 years ago

Because you are keeping 13 months of phone call data and want to easily drop the oldest month every 1st.

Because your queries need to be fast, and you can chop up your data into 1000 pieces (by some column or combination) without adding complexity.

  • matcOP 14 years ago

    You can easily drop the oldest month every 1st using a delete statement.

    Queries can be fast with indexes without adding complexity.

apu 14 years ago

Uh, what?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection