M2M loading too slow in django

0

In some tables I use many to many, and as the database has grown its load time is increasing (of course), I've got an alternative to loading, which is raw_id_fields, but it does not demand as desired, if the raw id displayed the "name" instead of the id would be perfect. Are there any alternatives to improve the loading of m2m?

apensos = models.ManyToManyField(Processo, blank=True, default=None, related_name="Apensos")

This is an example of the use, in all others use and basically the same, pulling the data from the processes table.

And in the admin.py use:

raw_id_fields = ("apensos",)
    
asked by anonymous 18.09.2018 / 17:13

0 answers