Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 3.62 KB

cosmosdb.md

File metadata and controls

49 lines (35 loc) · 3.62 KB

COSMOSDB

HELP

LEARN

MONGODB MIGRATION

REQUEST UNITS

MISC

"geospatial" - CosmosDB uses SqlGeography under the covers instead of SqlGeometry. Whic is not GeoJson-compliant. Thus it usesgeodesic line segments instead of linear interpolation as required by GeoSpec spec (which is also done in Open Geospatial Consortium specs for WKT and SQL/MM). So CosmosDB produces spatial results that are not comparable to most GIS standards and operations. Also valid for Azure Stream Analytics and Azure Maps. 061120

"Request limit too large" . http status 29 , http header: x-ms-retry-after-ms . With SQL API its retried automatically. With mongoapi , request are not retried automaticaly. You must catch MongoCommandException and look for code property of 16500, then guess when to retry.

SEE ALSO - CosmosDB and Azure Functions https://github.com/jhealy/awesome/blob/master/azure-functions.md#cosmosdb-and-azure-functions