Skip to content

Instantly share code, notes, and snippets.

@kgorman
Created June 25, 2010 20:40
Show Gist options
  • Save kgorman/453413 to your computer and use it in GitHub Desktop.
Save kgorman/453413 to your computer and use it in GitHub Desktop.
> var arr=db.test.find({}, {'$diskLoc': 1}).limit(20).showDiskLoc()
> for(var i=0; i<arr.length(); i++) {
printjson(arr[i].$diskLoc.offset/512)
}
3241650.34375
3241650.4453125
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment