meteor-schema-index icon indicating copy to clipboard operation
meteor-schema-index copied to clipboard

Allow disabling indexing

Open StorytellerCZ opened this issue 4 years ago • 5 comments

Per #17 this PR allows to set Meteor.settings.collection2.dontRunIndexing to true which will then disable the indexing functionality.

To discuss here is that maybe we should enable this only for development.

StorytellerCZ avatar Aug 19 '21 18:08 StorytellerCZ

I don't really see the point?? Why not remove the indexes you created? A big kill switch isn't that big of a deal really. Especially given how simple it's to use this packages index: 1 How hard it's for you to search the code and remove those statements?? :-1:

harryadel avatar Jan 16 '24 06:01 harryadel

Simple answer: packages If you have a package that depends on this package and sets indexes via collection2, then unless you have this option or manually edit the target package you have to do things manually in MongoDB and every time your server updates.

StorytellerCZ avatar Jan 16 '24 11:01 StorytellerCZ

like what packages?

harryadel avatar Jan 16 '24 11:01 harryadel

Socialize packages, freedombase:legal-management, etc.

In general feature packages that add collections.

StorytellerCZ avatar Jan 16 '24 11:01 StorytellerCZ

ok, fair enough.

harryadel avatar Jan 16 '24 11:01 harryadel