Databases

Partition key

The column that decides which shard each row goes to.

Example

With user_id % 4, user 1,002 goes to shard 2.

Test yourself: Partition key

Sharding

The column deciding which shard each row goes to is the ___ key.

Lessons that use it

More databases terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.