Hi,
I've written up an RfC to change the way we currently store a page's and revisions' content model and format: https://www.mediawiki.org/wiki/Requests_for_comment/Content_model_storage in the database.
Please leave comments on the talk page.
Thanks! -- Legoktm