Improving Data Handling
Sunday, February 7, 2010 at 5:11 pm
One of the original aims of MOPS was to avoid implementing a database; primarily because the overhead in installing and maintaining a database could be problematic. MOPS, instead, was developed using a file-based data system, using Python’s dictionary facility to handle the data.
During some recent testing (with the Flash, or messaging, service in MOPS), it was apparent that MOPS would need to lock the files during read access as well as during updates. This pushed MOPS into a more complex file handling arrangement. Instead of implementing this, testing is being carried out using Python’s ‘dbm’ utility, which uses a very basic key-data database arrangement. If the tests prove satisfactory, then the changes will be applied to all the currently developed modules. This will mean little progress over the next couple of weeks. As has been stated before, MOPS is being built to a standard and not a timetable, although at this stage the amount of effort involved in reworking MOPS onto the dbm model is probably not too great.




