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. [DocumentDB] Allow Paging (skip/take)

    Allowing paging would be huge. Btw, Thank You for rolling out this feature at all! It looks wonderful! Can't wait to try it! However, I won't be able to use it for actual work projects until it supports paging and sorting.

    3,269 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      90 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • 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.

      2,966 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        55 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Add Group By support for Aggregate Functions

        We're really happy about the new aggregate functions that recently were announced. But without Group By support they fall short and will leave many disappointed. Please add Group By support as well.

        2,117 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          46 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Azure CosmosDB is too expensive for small but multiple collections

          Currently using on-prem MongoDB (on Linux) and wish to move to Azure, but I find CosmosDB is too expensive for small but multiple (MongoDB)collections because it seems that a minimum of 400 RRU's/per second will be charged for each collection.

          The terminology used on the pricing web pages is somewhat unclear though and I am not sure if the pricing for the minimum of 400 RRU's/second applies to partitions or collection (or if these terms are in fact identical semantically)

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

            We have just released a major update to our pricing for Cosmos DB.

            Starting today, customers can now provision a database with just 400 RU/s (or about $ 0.77/day USD). Combined with the ability to share throughput across collections this should make Cosmos DB much more affordable to users with many small collections

            We invite you to checkout our new pricing in the Azure Portal and give us feedback.

            Thank you for your patience and feedback.

          • Support cross-document joins

            I have a many-to-many scenario that requires something like document-to-document joins.

            In my app, users can "like" posts. That's three "tables" or entity sets. One each for users, likes and posts. I can't put the likes inside of either the users or the posts entities as sub-documents because there could be thousands of them. Even with 256KB documents I'd run out of room pretty quickly. I need a way to quickly get the top 100 posts that a user liked (and continue to paginate from there). I also need to go the other way. I need to get all the…

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

              For applications that require cross document join, please consider the Gremlin API: https://docs.microsoft.com/en-us/azure/cosmos-db/create-graph-dotnet, which has primitives for joins, traversals, and other graph operations.

              We are evaluating expanding the SQL grammar to support graph functionality, which will provide the ability to perform cross-document JOINs. Please upvote this item to help us prioritize this work.

            • Transaction support in client SDKs

              it would be useful if documentdb transactions are supported in .net, rather than just storedprocs and triggers.
              using trans = newtrans()
              try
              db.addsomething()
              db.save() //ok
              db.addother()
              db.save() //fail
              catch
              trans.rollback
              end try
              end using

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

                We need a PowerShell module for managing Azure DocumentDB

                1,084 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  40 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Offline version for mobile devices

                  Like cloudant and couchbase. To be able to have local storage which can sync with the cloud once we get a network conneciton.
                  It should be connection agnostic, use in the same manner if connected or not.

                  1,010 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    27 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Autoscale Throughput (UR/s)

                    Depending on the average amount of incomming requests/ required RU's, (or other parameters,)
                    I would like to autoscale the througput(RU/s) of a collection.

                    937 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      37 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • Add DocumentDB Emulator support for Mac OS X and *nix

                      The DocumentDB Emulator currently only supports Windows 10.

                      It would be great if support for Mac OS X could be added or documentation to run it on other platforms.

                      903 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 →
                      • Set based operations (INSERT, UPDATE, DELETE)

                        It would be nice to be able to update parts of documents, delete documents, and insert documents using set based operations, similar to SQL.

                        e.g.
                        UPDATE Users SET IsActive = 0 WHERE LastLogin < '2010-01-01'
                        DELETE FROM Users WHERE LastLogin < '2009-01-01'
                        INSERT INTO table2 SELECT * FROM table1

                        805 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  ·  Flag idea as inappropriate…  ·  Admin →

                          There are multiple responses to this suggestion.

                          Support for SQL-like syntax for UPDATE, DELETE and INSERT INTO are not on our road map at this time.

                          However, the underlying functionality for an UPDATE, SET is essentially a PATCH. This functionality we are actively working on. See this User Voice item here to track for future updates. https://feedback.azure.com/forums/263030-azure-cosmos-db/suggestions/6693091-be-able-to-do-partial-updates-on-document

                          Thank you for your suggestion.

                        • Support Document Versioning

                          The ability to generate links to a previous version of a document would be a powerful addition DocumentDB that has many use cases.

                          In my case I need a self managed profile document that needs to be referenced at point in time to be tied to an event.

                          685 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  ·  Flag idea as inappropriate…  ·  Admin →

                            Azure Cosmos DB now provides the ability to access the change feed (https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed). A common pattern to implement eventing patterns is

                            1. Store every version/change as a separate item
                            2. Read the change feed to merge/consolidate changes and trigger appropriate actions downstream.

                            You can also expire old versions using TTL: https://docs.microsoft.com/en-us/azure/cosmos-db/time-to-live

                          • Implement LIKE keyword

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

                            683 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.

                            • 614 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                20 comments  ·  MongoDB API  ·  Flag idea as inappropriate…  ·  Admin →
                              • Allow multi Order By

                                From what I see it is impossible to run a query with more than one column in the Order By.

                                525 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  11 comments  ·  SQL API  ·  Flag idea as inappropriate…  ·  Admin →
                                • Add support for single entity retrieval instead of IEnumarable

                                  Single \ First and so are currently not supported in Document DB

                                  For example, the following code:

                                  return _client.CreateDocumentQuery<TEntity>(_collection.SelfLink).SingleOrDefault(x => x.Id == id);

                                  causes the error:

                                  An exception of type 'Microsoft.Azure.Documents.Linq.DocumentQueryException' occurred in Microsoft.Azure.Documents.Client.dll but was not handled in user code

                                  Additional information: Query expression is invalid, expression return type Entities.Models.Hierarchy is unsupported. Query must evaluate to IEnumerable.

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

                                    Thank you for your feedback. I have discussed this in more detail with our team.

                                    You are correct the workaround suggested to use .AsEnumerable().FirstOrDefault(). should not be a recommended work around. This way results in materializing all documents on the client first before getting the 1st document, which is not very efficient and the exact opposite of what you are trying to achieve.

                                    Instead we recommend you use Take(1).AsEnumerable() and then .First() or .Single() or .FirstOrDefault() for Single() and First(). Take(1) is translated to SELECT TOP 1 and is processed server-side so more efficient than the previous suggestion and is what you are trying to achieve.

                                    As to the original ask. The support for these operations can be done, but this work is not prioritized against the other work we want to deliver. I will move this back as unplanned but please note this is on our roadmap.

                                    Thanks again…

                                  • Support Cypher as a query language for Graph data

                                    Add Cyhper (see http://www.opencypher.org/) as a language to query graph databases. Cypher is a human readable query languages to easily access a graph database.

                                    349 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 →
                                    • 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.

                                      305 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 →
                                      • OpenSource DocumentDB .NET SDK

                                        Unlike this thread
                                        https://feedback.azure.com/forums/263030-documentdb/suggestions/6334154-open-source-documentdb

                                        We would like to have only the .NET SDK as opensource
                                        https://github.com/Azure/azure-documentdb-dotnet/issues/128

                                        I have been programming against docdb with .Net for more than one year now and 80% of my problems come from the .NET SDK. We must be able to step into source code easily and propose pull requests to fix bugs. This will help Microsoft DocDB dev team to speed up corrections and features on this SDK.

                                        304 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 →
                                        • Add ability to rename databases and collections

                                          It should be possible to rename databases and collections.

                                          This feature is universal in all if not the vast majority of database products.

                                          Lack of ability to rename anything makes it very hard for us to manage releases if we are adding new data. Currently, we have to create a copy of the existing database (which is a feat in itself, since this again is not core functionality), make the change there, and then re-point the website to the updated database. All this time, we are incurring extra costs and inconvenience.

                                          Renaming things also allows us to correct typos, which…

                                          272 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 →

                                            The ability to rename databases and collections is not currently something that is in our road map.

                                            Currently the way to accomplish this task in Cosmos DB is to create a new collection with the changed name then use bulk exec or change feed to populate it.

                                            Thanks for your request and input on this. We may consider this for a future planning cycle.

                                            thanks.

                                          ← Previous 1 3 4 5 12 13
                                          • Don't see your idea?

                                          Azure Cosmos DB

                                          Feedback and Knowledge Base