Click here to unsubscribe from OpenMRS Implementers' mailing list
Remember that you added a feature to bring the patient with the most encounters and most observations? Could there be a test patient with an absurd number of observations?
-Darius (by phone)
My understanding is that the sizes of tables given by Manu are before the module is used.
The big size of the dump comes from the hl7_in_archive table and other tables are already properly filtered.
-Rafał (by phone)
-- OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
On a related note, I’ve started testing upgrading a Rwanda-sized (large) database from 1.6 to 1.9. I have install the InnoDB performance plugin that Jeremy mentioned a few months back.
Right now the upgrade has been hung for the past hour on the liquibase changeset:
Author: Harsha.cse Comments: Drop Not-Null constraint from location column in Encounter and Obs table Description: Drop Not-Null Constraint (x2)
Now the obs table I am testing on has 6 million+ observations… but does it make sense that the time to drop a not-null constraint on a column would be dependent on the number of rows in the table?
Mark
MySQL 5.5 does not support efficient creation or dropping of FOREIGN KEY constraints. Therefore, if you use ALTER TABLE to add or remove a REFERENCES constraint, the child table is copied, rather than using Fast Index Creation.
Hmm… hopefully not… I installed the InnoDB performance plugin that supposed fixes this issue… maybe I haven’t installed it correctly?
@Jeremy: How many obs do you have in your database? I’m trying to get a ballpark of how long the Rwanda update will take.
I know that this has been discussed before, but this is something that needs to be addressed. 48 hours for an upgrade is unacceptable and would most likely prevent our Rwanda sites from ever upgrading.
Mark
Jeremy—
What version of mysql are you using? I’m wondering if there is any value (and risk) in us upgrading from 5.1 to 5.5 in Rwanda.
Yes, Dave T. pointed me in the direction of the InnoDB plugin which you recommended. I installed it yesterday, but unfortunately it only improves indexing… creating/removing foreign keys and columns still seem to require a full table copy.
Fyi, one thing I discovered is that the “show engine innodb status” command shows the number of rows inserted/updated/deleted/read, along with the average inserts, etc, per second, so it allows you to monitor the progress of a large operation.
Take care,
I definitely think this is worth considering. Also, we should all be aware of this as developers when writing liquibase changesets… in one case I noticed the date_started and date_stopped columns in the obs tables are dropped in two successive changesets. These certainly could have been handled in a single changeset.