Dupont, Michael wrote:
Do you think that such a cacheing system is interesting even if there is a database? I mean, caching is also a way implement swapping, but if you have a datbase, who will be implementing the caching?
If you use a database, the caching would probably not be required: the database is acting as a cache itself. However, it depends on how you implement the database connection: if you query for all facts in the DB at once then you will have the same memory problems. But then you can avoid the memory problem by just querying for a limited number of facts each time. So, in a word, you would be implementing the caching within your connection to the DB.
How hard will it be to create a DB access to an existing database, what are your experiences?
We have a connection to MySql within Ciao. It is an adaptation for Ciao of the Prolog to SQL compiler written by Christoph Draxler, CIS Centre for Information and Speech Processing, Ludwig-Maximilians-University Munich. If it does not match your needs, you will probably not have many problems in adapting it.
Francisco Bueno CLIP group - CS Dept. - FIM - UPM Campus de Montegancedo - 28660, Boadilla del Monte - Madrid Tel: +34 1 336 7441 Fax: +34 1 352 4819 Internet: bueno(a)fi.upm.es http://www.clip.dia.fi.upm.es/~bueno/