Re: Queries as data

From: Neo <neo55592_at_hotmail.com>
Date: 28 May 2003 09:00:13 -0700
Message-ID: <4b45d3ad.0305280800.3a17b05e_at_posting.google.com>


> does anyone know what's the idea of treating "queries as data"? I've
> heard about that, but I don't know the meaning nor the advantages.

In a prior version of an experimental database (XDb), queries were stored in the database in the same manner as any other data.

Advantages:
1. Because the queries were stored as typical data, all the facilities of the database could operate on it in the same manner as any other data.

2. The relationship between data and components of the query were encoded in the same manner as the relationship between any other data which allowed for better maintenance. For example, if a thing's name was changed and a query depended on that thing, the name in the query was updated automatically. In most dbs, if you change the name of a thing (ie table, field, or value) a query would be oblivious to the changes until it is executed and typically results in error messages. Received on Wed May 28 2003 - 18:00:13 CEST

Original text of this message