I need to display on the page a huge table with a bunch of columns, the data of which is pulled from different tables. I think all this will be cached in one table and updated on the crown once a day. The question is whether PK (primary key)? I know for sure that there will be no references to it from any tables (why?). Would this not affect performance?
And one more question: what about indices? I have never used them before and I do not understand them well (although I’ve already read the wiki). There are many columns, search / sorting will be possible for each of them and almost all of them are textual (except for dates that are stored in the number of the TIMESTAMP type so that you can sort them too). What should I hang on the index for each column? Or one but compound for all?