A whole set of keys to load

LevelDataStudio » Use cases » Bulk load keys

Download LevelDataStudio Free Trial »     Buy LevelDataStudio Now »

The situation

Hundreds or thousands of entries have to go into a LevelDB store: reference data that somebody maintains in a spreadsheet, an export from another environment, or the seed values a development store needs before an application can start.

LevelDB has a bulk-load path for this, but it is a program you write - and a program written once for one store tends to be written again for the next one.

What you do

  1. Open the target database (or create one to load into).
  2. Choose import and pick the source file: JSON, CSV or XML.
  3. Say which column or field is the key and which is the value - the rest is the batch.
  4. Run. Large imports are handled with the same incremental loading as the rest of the tool, so a file with a great many entries does not have to fit in memory.

Importing keys and values into a LevelDB database in Level Data Studio

The reverse case is the common one: data exported from this store or another one, loaded back into a fresh database to reproduce a problem or to set up a colleague's machine - without anybody needing the original application to be running.

What it will not do

Related

The mode itself: import LevelDB keys from files. Producing such a file: export the keys. An empty starting point: create a LevelDB database. Checking what landed: look inside the database.