Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

turn off auto-creating index #207

Open
p3manas opened this issue Sep 14, 2020 · 7 comments
Open

turn off auto-creating index #207

p3manas opened this issue Sep 14, 2020 · 7 comments
Assignees

Comments

@p3manas
Copy link

p3manas commented Sep 14, 2020

Currently in code creating index is automatic.

Could you please suggest is there any way to turn off auto creation of index.

@arulrajnet
Copy link
Collaborator

@p3manas The index are needed for job search and all. Refer this

BTW, Why you need to turn-off.?

@rvilike
Copy link

rvilike commented Nov 1, 2020

@arulrajnet Would be useful for us as well, trying to make quartz-mongo work with CosmosDB, but getting:
Caused by: com.mongodb.MongoCommandException: Command failed with error 67 (CannotCreateIndex): 'Cannot create unique index when collection contains documents' on server cdb-ms-prod-centralus1-cm1.documents.azure.com:10255. The full response is {"ok": 0.0, "errmsg": "Cannot create unique index when collection contains documents", "code": 67, "codeName": "CannotCreateIndex"}

CosmosDB won't allow unique index creation when collection contains documents:
https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-indexing#unique-indexes

Would be nice to turn off the index creation and create them manually.

@arulrajnet
Copy link
Collaborator

@rvilike Got it.

@michaelklishin we can catch and log that as warning instead of throwing SchedulerConfigException . Your thoughts on this?

@arulrajnet arulrajnet self-assigned this Nov 3, 2020
@jadermoraes
Copy link

any news on this issue? would be really cool to have this working along cosmosDB.

@michaelklishin
Copy link
Owner

michaelklishin commented May 9, 2022

@jadermoraes this is open source software. You are welcome to submit a PR. I no longer maintain or use this project.

@dreyanz
Copy link

dreyanz commented Jul 6, 2023

any update on this?

@michaelklishin
Copy link
Owner

this is open source software. You are welcome to submit a PR. I no longer maintain or use this project

still stands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants