Azure Cosmos DB

Azure Cosmos DB is a globally distributed database service designed to enable you to elastically and independently scale throughput and storage across any number of geographical regions with comprehensive SLAs. You can develop document, key/value, or graph databases with Cosmos DB using a series of popular APIs and programming models.

SQL API:
With the SQL API, Azure Cosmos DB provides rich and familiar SQL query capabilities with consistent low latencies over schema-less JSON data. In this article, we provide an overview of the Azure Cosmos DB’s SQL API, and how to best use the API.

Gremlin API:
Azure Cosmos DB provides the Gremlin API for graph modeling and traversal, along with turn-key global distribution, elastic scaling of storage and throughput, and low latency.

Cassandra API
Azure Cosmos DB supports the Cassandra API. This means that by using existing drivers, your application written for Cassandra can now communicate with Azure Cosmos DB instead of Apache Cassandra/Datastax Enterprise databases, and gain benefits like global distribution and elastic scale.

MongoDB API:
Azure Cosmos DB supports the MongoDB API. This means that by using existing drivers, your application written for MongoDB can now communicate with Cosmos DB instead of MongoDB databases, and gain benefits like global distribution & elastic scale.

Table API:
Azure Cosmos DB provides the Table API for key-value workloads. This provides a premium experience for Azure Table storage with secondary indexes, global distribution, low latency, and dedicated throughput.

How can we improve Azure Cosmos DB?

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Be able to do partial updates on document

    Allow to push only values for some fields of a document and not need to read the whole document and save it to documentDB.

    3,058 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      58 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • Manage Azure DocumentDB using PowerShell

      We need a PowerShell module for managing Azure DocumentDB

      1,094 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        41 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Implement LIKE keyword

        Add support for the LIKE '%%' SQL keyword and associated functionality.

        686 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          31 comments  ·  Flag idea as inappropriate…  ·  Admin →

          Azure Cosmos DB supports the CONTAINS, STARTSWITH, and ENDSWITH built-in functions which are equivalent to LIKE.

          We are planning to add support for LIKE since this is a top requested item, but meanwhile, please use the other equivalent keywords.

        • Support Gremlin Bytecode to enable the fluent API of Gremlin.NET

          Azure Cosmos DB Graph API doesn't support Gremlin Bytecode. Therefor it is not possible to use the fluent traversal API of Gremlin.NET.

          Within the Azure Cosmos DB Graph .NET API (https://docs.microsoft.com/en-us/azure/cosmos-db/graph-sdk-dotnet) it is recommended to use Gremlin.NET. So it would be really nice if all features of Gremlin.NET would be supported.

          See also the idea of a "better type-safe APIs fro Gremlin" (https://feedback.azure.com/forums/263030-azure-cosmos-db/suggestions/19340761-better-type-safe-apis-for-gremlin) within the Graph API feedback.

          326 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            9 comments  ·  Gremlin API  ·  Flag idea as inappropriate…  ·  Admin →
          • Integrate with Azure Active Directory

            Really need to be able to set resource level access control integrated with Azure Active Directory. The current built-in user / resource access control is a pain to use and we end up with just using the master key and giving everyone access to everything.

            Azure SQL DB already has this, and is a pleasure to work with.

            Perhaps you should take a leaf from your sister team on this -

            https://docs.microsoft.com/en-us/azure/sql-database/sql-database-control-access-aad-authentication-get-started

            171 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              5 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • [CosmosDB] Be able to manage Backup and Restore with Portal and APIs

              Please provide the ability to manage backup and restore on our own.

              Restore through support is not clear and inconvenient.

              It turned out restore is only available through paid support plan.

              This document https://docs.microsoft.com/en-us/azure/cosmos-db/online-backup-and-restore#restoring-a-database-from-an-online-backup does not say it in any word.

              The situation made our customer extremely unhappy.

              168 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                2 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Better type-safe APIs for Gremlin

                Hello guys,

                With the recent announcement of CosmosDB which includes Gremlin APIs, is there any plan to have a more fluent/linq/lambda-friendly APIs on .Net SDK?

                I'm looking at this sample https://github.com/Azure-Samples/azure-cosmos-db-graph-dotnet-getting-started/tree/master/GraphGetStarted from docs, and the Gremlin queries are fully string-based.

                I could contribute that to a package like Microsoft.Azure.Graphs.Extensions or something like that.

                I know that lambda/linq syntax don't map 100% to the the Gremlin one.

                So the idea would be translate:

                g.addV('person').property('id', 'thomas').property('firstName', 'Thomas').property('age', 44)"
                to something like that:

                graph.Vertice<Person>().Property(p => p.Id == "thomas").Property(p => p.FirstName == "thomas").Property(p => p.Age == 44);
                That would internally build the proper Gremlin…

                168 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  7 comments  ·  Gremlin API  ·  Flag idea as inappropriate…  ·  Admin →

                  This is a bytecode dependency. We’re hoping to address bytecode here shortly. Hopefully by end of 2018, but it’s at the back of our backlog, so we can’t promise on it. We will update here when this work gets started.

                  Thanks.

                • Mongo DB API - cursor.sort() does not return sorted result

                  When I use find() with sort(), the results are not sorted correctly. The order of the returned items do change, but in a strange order. (MongoDB returns correctly sorted result with the same query). Is this a CosmosDB bug?

                  Here are the queries and results. The queries are executed with a Mongo DB shell connected to a Cosmos DB instance. You can see that the header_timestamp order are incorrect.

                  > db.datastore.find({}, {_id: 1, header_timestamp: 1})

                  { "_id" : "object-bbfg0pritvunrk0bi170", "header_timestamp" : NumberLong(1) }
                  { "_id" : "object-bbfg0rjitvunrk0bi180", "header_timestamp" : NumberLong(3) }
                  { "_id" : "object-bbfg0s3itvunrk0bi18g", "header_timestamp" : NumberLong(4) }
                  {…

                  75 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    3 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                  • support COUNT of a query on a partitioned collection

                    db.collection.count() works just find but when attempting to count a filtered down collection db.collection.find({query...}).count() results in an Operation Failure that says 'query in command must target a single shard key' but need to be able to do counts across multiple partitions

                    70 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      12 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                    • Needs documentation about limits when MongoDb API is used

                      Seems that information about limitations with MongoDb API is missing,
                      or impossible to find. For example mongo has max doc size 16Mb but
                      Azure docDb 2Mb, which is correct for CosmosDbWithMongoAPI.
                      (Even that documentDb limits documentation which is referred in this site seems to be removed)

                      -Maximum document size ?
                      -Maximum query payload size ?
                      -Maximum query result size ?
                      -Maximum size of partition of partitioned collection ?
                      -Maximum count of documents in the partition of partitioned collection ?
                      -Maximum count of documents in single-partition collection ?
                      -MongoDb needs manual creation of indexes, docDb indexes automatically all properties, how about…

                      64 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        2 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                      • Execute a procedure when TTL expires

                        I would like to execute a procedure when TTL expires. For example, when TTL expires I would like to also delete some related records from Azure table storage.

                        58 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          5 comments  ·  Flag idea as inappropriate…  ·  Admin →

                          We plan to introduce support for tracking deletes in the change feed. Using this capability, you can integrate with Azure Functions or another event processing system to perform operations like execute procedure or call other services programmatically.

                        • MongoDB API : aggregation operation is too slow

                          the aggregation operation is too slow ...

                          50 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            9 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                          • Compound indexes

                            Compound indexes are required for efficiently sorting on multiple fields. See https://docs.mongodb.com/manual/tutorial/sort-results-with-indexes/.

                            49 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              1 comment  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                            • Support for document validation, using JSON Schema

                              Similar to MongoDB v3.6 https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/ Would be useful for both MongoDB API and DocumentDB API

                              47 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                1 comment  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                              • Add DateTimeOffset support

                                The DocumentDb engine should be able to recognize and properly order DateTimeOffset serialized fields.

                                43 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  1 comment  ·  SQL API  ·  Flag idea as inappropriate…  ·  Admin →
                                • 29 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    1 comment  ·  Gremlin API  ·  Flag idea as inappropriate…  ·  Admin →
                                  • 29 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      2 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Encryption via Key Vault

                                      Provide ability to encrypt data at rest using provided keys using Key Vault. This is a frequent requirement for storing anything related to the business, especially finances.

                                      Keys will be managed by customer in that case.

                                      28 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                      • CosmosDB, Mongo API, Delete Many with Partition Key configured

                                        We have an IoT based solution and archive old data to blob storage. Our data is moved to archive using the shard key. Removing the data once archived is a pain and slow as each individual document has to be deleted rather than using DeleteMany(x=>x.shardId == id).

                                        More info found at:
                                        https://stackoverflow.com/questions/51301711/cosmosdb-mongo-api-delete-many-with-partition-key-configured

                                        24 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Support TTL indexes on any field

                                          Please add support for TTL indexes on any field, not just the internal and inaccessible `_ts` field. We need document specific TTLs.

                                          https://docs.mongodb.com/manual/tutorial/expire-data/

                                          24 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            1 comment  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1
                                          • Don't see your idea?

                                          Azure Cosmos DB

                                          Feedback and Knowledge Base