Tips and tricks for writing efficient queries in Azure Cosmos DB - Ep. 71

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 3

  • @mvhmz
    @mvhmz 3 месяца назад

    how do you search based on array length and keep it cheap

    • @AzureCosmosDB
      @AzureCosmosDB  3 месяца назад

      To search by array length in Azure Cosmos DB while minimizing cost, use a query that filters based on the length property, e.g., SELECT * FROM c WHERE ARRAY_LENGTH(c.arrayField) > 2. Keep the cost lower by ensuring your collection is well-indexed for the queried property and by using appropriate throughput (RU) settings for efficient execution.

  • @onionhammer
    @onionhammer Год назад

    datetimebin does not appear to be documented anywhere