6 Todo's updated 05.07.2003 |
Limit database queries |
Due to the low tables number, many queries are made such as Kaolak::getNodeDataTypeDataType() that returns the column to read in table node_data eg data_int, data_str. A good number of queries was limited by setting global arrays $KAOLAK_NODES, $KAOLAK_NODES['TYPES'], $KAOLAK_NODES['DATA_TYPES'], etc.
What now consumes pretty much is Node::getField() and Node::setField(). Theses two function take an optional $getFromDb and $updateDb boolean argument that decides wether to fetch data from db or from object. A global array holding field values could be created to hold data already fetch from db to return from getField() when $getFromDb is set.
|
|