[Answered ]-Using ElasticSearch as Database/Storage with Django

2πŸ‘

βœ…

It’s not possbile (officially) to use ElasticSearch as your django database backend (I assume that this is what you want) – currently supported backends are:

  • postgresql
  • mysql
  • sqlite3
  • oracle

The above is official list, unofficial (3rd parties) is as follows:

  • SAP SQL
  • IBM DB2
  • Microsoft SQL
  • Firebird
  • ODBC

Anyway, the people around django are very nice and hard working developers πŸ™‚ And there is package for that (you can give it a try – never used it before):

https://github.com/aparo/django-elasticsearch

One more thing – why do you need django? Is kibana not enough? You gonna make some changes in data on the ES index in your Django App? Or should it be just readonly?

Because if you want use the ES like a normal DB storage – it won’t work, as you will wait each time you update/insert data about 1-2 seconds till ES index new data. This is just not the purpose of the ES.

Hope this help, happy coding.

πŸ‘€opalczynski

Leave a comment