You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop creating indexes each time a document is inserted (#62)
* Stop creating indexes each time a document is inserted
We shouldn't treat the underlying database as something we own but
rather see this application as one of many application that interact
with an Eiffel event store. From that point of view it doesn't make
sense to create indexes each time a document is created.
Although the fields we previously created indexes for should be indexed
in pretty much any deployment most deployments will also want to index
additional fields. Adding a configuration option to manage indexes in
this application doesn't feel right, nor does spreading out index
management in multiple places.
Hence, remove index creations from insert_to_db(). This should also
improve performance.
* Fix formatting to please Black
0 commit comments