# Warning: backported schema change to obs table

**URL:** <https://talk.openmrs.org/t/warning-backported-schema-change-to-obs-table/4652>\
**Category:** Development\
**Created:** [February 10, 2016, 9:05pm UTC](https://talk.openmrs.org/t/warning-backported-schema-change-to-obs-table/4652 "2016-02-10T21:05:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [February 10, 2016, 9:05pm UTC](https://talk.openmrs.org/t/warning-backported-schema-change-to-obs-table/4652/1 "2016-02-10T21:05:24Z")

</div>

Apologizes for not noticing this earlier, but as part of [TRUNK-3915,](https://issues.openmrs.org/browse/TRUNK-3915) we are added a not-null constraint to the uuid column of the obs table.

Previously, we’ve noticed high performance impacts when trying to make schema changes to a very large table such as the obs table. I’m currently testing out the 1.10.4 platform release again a copy of our production database at UHM, (which has over 11 million obs) and the update _did_ appear to work successfully, but not without hanging my development IntelliJ/Jetty instance in the process. I will add a warning about this to the 1.10.4 release notes.

---

<div class="post-metadata">

**Author:** ![wyclif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wyclif/32/19607_2.png) [@wyclif](https://talk.openmrs.org/u/wyclif)\
**Post date:** [February 12, 2016, 4:14pm UTC](https://talk.openmrs.org/t/warning-backported-schema-change-to-obs-table/4652/2 "2016-02-12T16:14:49Z")

</div>

At one time we were supposed to have a GSoC project for someone to hack on a something to address slow database upgrades, there are changesets that don’t necessarily need to be run before openmrs starts and there are those that need to be run before it starts. For the former, a possible solution is to run them in a scheduled task that gets triggered at start up so they run in the back ground after the openmrs has been started and as for the latter things get a little tricky.
