Relational Models for Tabling Logic Programs in a Database

  • Authors:
  • Pedro Costa;Ricardo Rocha;Michel Ferreira

  • Affiliations:
  • DCC-FC & LIACC, University of Porto, Portugal;DCC-FC & CRACS, University of Porto, Portugal;DCC-FC & LIACC, University of Porto, Portugal

  • Venue:
  • Applications of Declarative Programming and Knowledge Management
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Resolution strategies based on tabling are considered to be particularly effective in Logic Programming. Unfortunately, when faced with applications that compute large and/or many answers, memory exhaustion is a potential problem. In such cases, table deletion is the most common approach to recover space. In this work, we propose a different approach, storing tables into a relational database. Subsequent calls to stored tables import answers from the database, rather than performing a complete re-computation. To validate this approach, we have extended the YapTab tabling system, providing engine support for exporting and importing tables to and from the MySQL RDBMS. Three different relational models for data storage and two recordset retrieval strategies are compared.