O'Reilly logo

Getting Started with LevelDB by Andy Dent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tuning and structuring data by scenario

The following scenarios provide context for the settings and key design techniques we've discussed here and in earlier chapters.

Choosing to structure data according to update rate

As we discussed in Chapter 8, Richer Keys and Data Structures, you can decide to move some values into separate keys rather than keeping them in a main record. As you should now understand, if the main record is very static, it will tend to migrate to a level table and then sit there, while new key values are pushed down from the top for your regularly updated data. This warehousing approach will work even better if the main records are indexed with an ascending identifier, as their level tables won't require resorting.

There's an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required