BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
1.9k stars 201 forks source link

feat(skip_index): possibility added to skip index actions #942

Open jorma16 opened 4 weeks ago

jorma16 commented 4 weeks ago

Just added the possibility to avoid index operations in init, like someone ask here: https://github.com/BeanieODM/beanie/discussions/924

And other people workaround here: https://github.com/BeanieODM/beanie/discussions/608

Please, take care of this, I really need this and I think that is very interesting for read only applications.

roman-right commented 2 weeks ago

Hi @jorma16 , Thank you very much for the PR. THis feature is so reasonable. Could you please add a test for it? It could check if indexes were not created in the db.