Move it up? How to integrate it?
For instance, see doc/verdad.html.
It should be able to run completely as user mysql
Use a database-resident complete item cache to massively speed up operations that involve fetching lots of complete items. Basically, we need to make a table to store complete items. Then we need a good subroutine that can tell you the answer to ``which cached complete items would be invalidated by editing this item''. At the end of every item edit, you remove invalid entries from the complete item cache. The usual case at Tellme is that people are editing leaf nodes, which means a small amount of the cache needs to be invalidated each time.