Note that although the size
parameter is passed to PostgreSQL, PostgreSQL will not enforce it.
When using ArrayField
s one should keep in mind this word of warning from the Postgresql arrays documentation.
Tip: Arrays are not sets; searching for specific array elements can be a sign of database misdesign. Consider using a separate table with a row for each item that would be an array element. This will be easier to search, and is likely to scale better for a large number of elements.