GridFS and Geospatial
GridFS - specification for storing and retrieving large files... images,audio file, video files...
File system to store the chunks. Data is stored within MongoDB collections...
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
Geospatial:
#2d sphere {type: 'point', coordinates: [40 ,5 ]}
#2d sphere index creation db[:zips].indexes.create_one({:loc=>Mongo::Index::GEO2DSPHERE}) #2d sphere queries db[:zips].find(:loc=> {:$near => { :$geometry=>{:type=>"Point", :coordinates=>[-76.625203, 39.29463]}, :$minDistance => 10000, :$maxDistance => 50000 } }).each { |r| pp r}

更多精彩