Last active
May 25, 2016 20:38
-
-
Save tidwall/0c0fe655ef9e15c9f6b9918a3d70458b to your computer and use it in GitHub Desktop.
Tile38 3,000,000 nearby test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Gist is used to test the performance of managing a group of 3,000,000 user points in Tile38.