django-elasticsearch-dsl icon indicating copy to clipboard operation
django-elasticsearch-dsl copied to clipboard

Question: Use this library without saving data in database only in elasticsearch engine

Open xecgr opened this issue 6 years ago • 2 comments

I would like to use this library as a django models wrapper to save data only in elasticsearch instead of saving in boths persistence systems: the django configured database and elasticsearch My use case is like this User Model (Sql is fine) UserPosts (This entity is huge, so I'd like to save it only in elastic, avoiding db issues with this big table)

I've followed the guide of this library and it seems that data is stored in elasticsearch after saving in sql database through post_save signal. Is possible to only save in elasticsearch engine?

xecgr avatar Mar 18 '18 08:03 xecgr

I have the same use case, it makes no sense for me to use the database in this case as I am saving traces.

Did you find a way to deactivate the Django ORM and keep elastic working?

le-noceur avatar Jan 12 '22 22:01 le-noceur

Just use elasticsearch-dsl-py, https://elasticsearch-dsl.readthedocs.io/en/latest/index.html

wingzzzz avatar Dec 13 '22 09:12 wingzzzz