porton
porton

Reputation: 5801

Storing multiple integers in a Berkeley DB

I need to store an ordered list of 32 bit integers for each key in a Berkeley DB (keys are also 32 bit integers).

Should I use multiple-keys feature or just store them as a string of bytes?

Upvotes: 0

Views: 53

Answers (1)

Mike Andrews
Mike Andrews

Reputation: 3206

You'll drive yourself crazy with the multiple keys feature. Store it in a single record.

Upvotes: 1

Related Questions