Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

HIMPORT

Last updated
HIMPORT subcommand [argument ...]
Group
Hash
Arity
-2 (at least 2 words, counting the command name)
Flags
write
HotKV Cloud
All plans
On-Premise
no license needed

HIMPORT is a container for the commands that load many hashes of one shape, like the rows of a table, while sending less. A connection first stores a list of field names under a name of your choice with HIMPORT PREPARE. Each HIMPORT SET key name value ... then creates one hash from the values alone, matched to the stored names in order. A load of a million hashes with ten fields sends the ten names once instead of a million times.

Subcommand What it does
HIMPORT PREPARE Give a name to a list of field names, for this connection.
HIMPORT SET Make a hash from the values for a prepared list of fields.
HIMPORT DISCARD Forget one prepared list.
HIMPORT DISCARDALL Forget every prepared list of this connection.

An unknown subcommand replies ERR unknown subcommand 'name'. Try HIMPORT HELP. The prepared lists belong to the connection: RESET or closing it drops them. The hashes are ordinary hashes.

A Redis 8.10 command.

HSET, HGETALL, OBJECT