I have a question regarding how to organize a model. What is faster and more optimized, perform a search for the form the 1º method or the 2º?
1º method:
datos_independiente=item.objects.order_by('-qualification')
or 2º method: use in the model
class Meta:
ordering = ["-qualification"]
I ask this because if I use the first method, the database will be ordered every time I execute the sequence and if I use the second method, it will be ordered when it is created and the new rows that are added will do so in an ordered way? If this is correct, it will be more process optimal to use Meta class. Right?