4.12.3 Database References

A database reference is a term that uniquely identifies a clause or recorded term (see ref-mdb-idb) in the database. Database references are provided only to increase efficiency in programs that access the database in complex ways. Use of a database reference to a clause can save repeated searches using clause/2. However, it does not normally pay to access a clause via a database reference when access via first argument indexing is possible.


Send feedback on this subject.