To improve performance each patient will have their own tables for lists. When a patient is created, tables for medication, belongings, their individual charts need to be created.
Why? - If we cram all users to one table a large database will take a long time to perform a search. If we dynamically call a table (ie 989893928MedicationList) we will only get that patient data. Yes it will create a crap load of tables but performance should improve since we will only search through one patient compared to 1000s.
How? - When a user creates a record, create all tables. When we want to call a record, dynamiacally pass the table name and get the records. We want to remove all vector queries, and just pull the records normally from the tables.
To improve performance each patient will have their own tables for lists. When a patient is created, tables for medication, belongings, their individual charts need to be created.
Why? - If we cram all users to one table a large database will take a long time to perform a search. If we dynamically call a table (ie 989893928MedicationList) we will only get that patient data. Yes it will create a crap load of tables but performance should improve since we will only search through one patient compared to 1000s.
How? - When a user creates a record, create all tables. When we want to call a record, dynamiacally pass the table name and get the records. We want to remove all vector queries, and just pull the records normally from the tables.