azureazure-cosmosdb

Azure Cosmos DB indexing for gremlin queries


I have gone through many documents where indices are created but the APIs used are SQL API for Azure cosmos but no example for Gremlin API. Any help would be appreciated. Thanks!!


Solution

  • Azure Cosmos DB is a schema-agnostic database that allows you to iterate on your application without having to deal with schema or index management. By default, Azure Cosmos DB automatically indexes every property for all items in your container without having to define any schema or configure secondary indexes.

    For more details, we can see Indexing policies in Azure Cosmos DB.

    Azure Cosmos DB support Gremlin API. You can use the indices for your Gremlin queries.

    Reference: Querying with indexes

    Hope this helps.