Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible to store 100,000+ columns in a database table?

I want to store Genetic variants of patients in a database. Number of patients are around 1000 but for each patient there are more than 100,000 Genetic variants. Can anyone advice me how to design this table. Is it possible to do this in MongoDB ? The data will look something like this. Any help will be highly appreciated

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you want to use a relational database. You should create a table for just patients and a separate table that has a foreign key pointing to the user and another column for the genetic variation. Instead of having a column per RS_***, those should be a row. So for example User A will have 100,000 rows in Table B each row being RS_{insert_index}.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading