Skip to content

Instantly share code, notes, and snippets.

@tidwall
Last active May 25, 2016 20:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tidwall/0c0fe655ef9e15c9f6b9918a3d70458b to your computer and use it in GitHub Desktop.
Save tidwall/0c0fe655ef9e15c9f6b9918a3d70458b to your computer and use it in GitHub Desktop.
Tile38 3,000,000 nearby test
# Pull the latest tile38/master branch.
# Start Tile38 server in dev mode and very verbose.
./tile38-server -dev -vv
# From another terminal run use the CLI to insert 3,000,000 random points around the Silicon Valley area.
# This will create a collection key "mi:0" with points ids "0" - "2999999".
./tile38-cli massinsert 1 3000000 37.10776 -122.67145 38.19502 -121.62775
# Update location for point id "1001".
./tile38-cli set mi:0 1001 point 37.771936 -122.445516
# Finally find all ids in a 300 meters radius of "1001"
./tile38-cli nearby mi:0 ids point 37.771936 -122.445516 300
@tidwall
Copy link
Author

tidwall commented Apr 4, 2016

This Gist is used to test the performance of managing a group of 3,000,000 user points in Tile38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment