2

I currently use django 3.2 and MySQL as database, I want use MySql Json Field. For this reason use django-mysql third party package in my project. After create model got this Warning: (django_mysql.W004) django_mysql.models.JSONField is deprecated. HINT: Use django.db.models.JSONField or django-jsonfield-backport instead. If i use django.db.models.JSONField as json field, django use specific MySQL's JsonField ? Dose any effect on preformance? Which one has best performance on database?

Shadow
  • 33,525
  • 10
  • 51
  • 64
A.Motahari
  • 173
  • 5
  • 10
  • 1
    According to the [Django Docs](https://docs.djangoproject.com/en/3.1/ref/models/fields/#jsonfield), Django 3.1+ supports JSONField for MySQL 5.7.8+. – evergreen May 14 '21 at 14:29

1 Answers1

1

The documentation here, does not mention a difference in performance. So, probably there is none. It looks like the change is only for supporting all databases with the same unique model field. There is a similar issue in this link. So, you can check that, too. As I read, django-jsonfield-backport is for early versions of Django. So, choose according to your version.