arjunmehta / node-georedis

Super fast geo queries.
MIT License
192 stars 33 forks source link

Generating commands for use in redis-cli #17

Closed mikezliu closed 7 years ago

mikezliu commented 7 years ago

I'm bulk importing millions of geos and other keys and would like to do this via a single file generated using the redis protocol (http://redis.io/topics/mass-insert). Is there a way to generate the georedis insert/set commands?

arjunmehta commented 7 years ago

@mikezliu You can definitely look at the code to see how I'm generating the query here https://github.com/arjunmehta/node-georedis/blob/master/lib/interfaceNative.js#L20-L32

You'll need to consider how to apply that to your project.