Azure / azure-cosmos-db-emulator-docker

This repo serves as hub for managing issues, gathering feedback, and having discussions regarding the Cosmos DB Emulator Docker.
https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Ccsharp&pivots=api-nosql
MIT License
164 stars 47 forks source link

Large number of excludedPaths in index policy fails creation #91

Open jamesjhhan opened 7 months ago

jamesjhhan commented 7 months ago

Describe the bug Creating or updating a container with an indexing policy with a large number of excludedPaths (around 900) times out. There is no issue in the non-docker Windows cosmos emulator as well as the cloud service. Also, it seems to work fine under 850 excludedPaths.

To Reproduce Steps to reproduce the behavior:

  1. create a container with a indexingPolicy with 900 or more excludedPaths (either via code or using the localhost:8081 dashboard).
  2. the request times out.

Expected behavior Container should be created/updated with the specifiedd indexing policy without timing out.

Desktop (please complete the following information):

Docker Images Used:

**Arguments && Environment variables to start Docker:

Docker Environment

Cosmosdb

cosmosdb: restart: always container_name: "azure-cosmosdb-emulator" hostname: "azurecosmosemulator" image: 'mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest' mem_limit: 8GB tty: true ports:

volumes: cosmos-data: driver: local