Created
October 2, 2012 20:20
-
-
Save cpetersen/3823037 to your computer and use it in GitHub Desktop.
Attempt to generate overlapping blocks of uuids in couch
This file contains hidden or 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
curl http://localhost:5985/_uuids?count=100000 > 1.json & | |
curl http://localhost:5985/_uuids?count=100000 > 2.json & | |
curl http://localhost:5985/_uuids?count=100000 > 3.json & | |
curl http://localhost:5985/_uuids?count=100000 > 4.json & | |
curl http://localhost:5985/_uuids?count=100000 > 5.json & |
This file contains hidden or 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
def uuids(filename) | |
JSON.parse(File.read(filename))["uuids"] | |
end | |
uuids1 = uuids("1.json") | |
uuids2 = uuids("2.json") | |
uuids3 = uuids("3.json") | |
uuids4 = uuids("4.json") | |
uuids5 = uuids("5.json") | |
uuids1 & uuids2 | |
uuids1 & uuids3 | |
uuids1 & uuids4 | |
uuids1 & uuids5 | |
uuids2 & uuids3 | |
uuids2 & uuids4 | |
uuids2 & uuids5 | |
uuids3 & uuids4 | |
uuids3 & uuids5 | |
uuids4 & uuids5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment