For a model in my database I need to store around 300 values for a specific field. What would be the drawbacks, in terms of performance and simplici
If you use an array field
defer
(https://docs.djangoproject.com/en/1.9/ref/models/querysets/#defer) the field or otherwise exclude it from the query via only
, or values
or something, you paying the cost of loading all those values every time you iterate across that row. If that's what you need then so be it.If you use M2M
prefetch_related
if you need them and then get fancy if you want only a subset of those values loadedPersonally I'd say go with the M2M tables, but I don't know your specific application. If you're going to be working with a massive amount of data it's likely worth grabbing a representative dataset and testing both methods with it.