Reputation: 21
I plan to use PostgreSQL to store a huge matrix.
The structure of the dataset is like below:
Is there any way to construct the database to make it easy to store and efficient to query?
Thanks in advance!
Upvotes: 2
Views: 681
Reputation: 156
My first advice would be to design you table with the column and row of each matrix element.
Eg. table = {row,column,record1,record2,record3,record4,record5}, with {row,column} been the primary key.
Hope it helps.
Upvotes: 5