i'm redis noob, , i'm struggling data database. have 900,000 records , constructed pipeline .txt file in r outputs following:
set "120705373" "wilshire;01/30/2012;theft of identity;invest cont;34.0441;-118.3382;other" set "120705394" "wilshire;01/30/2012;battery ;adult other;34.0472;-118.3574;assault" set "120705395" "wilshire;01/30/2012;battery ;adult other;34.0472;-118.3574;assault" ...etc
now when run file in bash:
cat /mnt/c/users/filename.txt | redis-cli --pipe
i "err wrong number of arguments 'set' command. have tried parsing file in many ways possible , continue hit brick wall. ideas?
the --pipe option meant used mass insertion. need feed redis-cli --pipe data encoded redis protocol, not plain text redis commands.
see http://redis.io/topics/mass-insert more explanation.
Comments
Post a Comment