I see that PostgreSQL array is good for performance if the array's element is the data itself, e.g., tag
http://shon.github.io/2015/12/21/postgres_array_performance.html
How about if I use array as a way to store foreign keys of integer? Barring foreign key constraint problem, is it advisable to store foreign keys with integer array?
Apps should optimize for report or analytics. So if the app will end up joining the array to table most of the time, say the app need to show the label/title/name of the foreign key, is it still OK to use array for storage of foreign keys?
Would the performance be better when array is smallish as compared to using a junction table, say checkboxes of movie genres integer?
How about if the array is in thousands, would the performance be better when not using array and just use junction table instead?