When importing data into a CRDB, there are two options:

  • Perform a flushall to the database, thus deleting all data. Then import the data into the CRDB.
  • Import data but merge it into the existing or add new data from the import file.

When using option #2, there are special considerations to be aware of. Unlike a traditional Redis database, CRDBs have a numeric counter data type and thus require special ways to increment. The import through the Redis Enterprise web UI handles these data types for you. When you import data into a CRDB, there is a special prompt such as the below.

Import into a

Import into a CRDB

As part of the import in the UI, RS increments counters by the value that is in the importing data.

You can read more on how to perform the import here.