I built a table (4 million rows) using:
INSERT INTO
cords ("X", "Y")
SELECT
x, y
FROM
generate_series(-1000,1000) x,
generate_series(-1000,1000) y
Assuming no more rows will be inserted and if I wanted to add many columns of data relative to each row, would it be better to add the columns into the same table, or map X and Y to an int that references a separate table? Also, should I use a compound index for X (Primary Key) and Y (Secondary Key)?
I plan on querying and updating data from hundreds to thousands of rows at once very frequently. I am trying to find information on this scenario to determine what are the pros and cons of different setups.
Can someone direct me towards a relative information source or provide incite that might help direct me in the right direction? Thank you!