michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
250 stars 202 forks source link

turn off auto-creating index #207

Open p3manas opened 4 years ago

p3manas commented 4 years ago

Currently in code creating index is automatic.

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

arulrajnet commented 4 years ago

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

BTW, Why you need to turn-off.?

rvilike commented 4 years ago

@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 commented 4 years ago

@rvilike Got it.

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

jadermoraes commented 2 years ago

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

michaelklishin commented 2 years ago

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

dreyanz commented 1 year ago

any update on this?

michaelklishin commented 1 year ago

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

still stands.