A computer-implemented method comprising:nstoring, within database objects managed by a database system, data files contained in a directory of folders, each folder of said directory of folders containing at least one data file of said data files;in said database, storing metadata that, for each folder of said directory of folders, defines one or more constraints, wherein said one or more constraints includes a physical constraint that specifies that storage of any data file in said each folder is restricted to at least one specified database object of said database objects;wherein for at least two of said directory of folders, a first folder includes a first data file that is restricted by said physical constraint to a first database object and a second folder includes a second data file that is restricted by said physical constraint to a second database object;wherein the first database object is different than the second database object;receiving, at the database system, a query that complies with a query language;in response to receiving said query:nbased on (1) said query and (2) the one or more constraints defined by the metadata, said database system making a determination of how data required by the query is stored in said database; andbased on the determination on how data required by the query is stored in said database, rewriting the query to generate a re-written query that specifies a restriction based on a particular database object of said at least one specified database object, wherein the received query did not specify said restriction.
›2.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that contain a particular type of content;wherein receiving a query includes receiving a query that involves the particular type of content; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the particular set of one or more folders.
›3.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that contain a particular type of content;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables; andwherein receiving a query includes receiving a query that involves the particular set of one or more folders; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›4.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that contain a particular type of content;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables; andwherein receiving a query includes receiving a query that involves the particular type of content; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›5.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that are associated with a particular XML schema;wherein receiving a query includes receiving a query that involves a file that is associated with the particular XML schema; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the particular set of one or more folders.
›6.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that are associated with a particular XML schema;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables;wherein receiving a query includes receiving a query that involves the particular set of one or more folders; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›7.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files that are associated with a particular XML schema;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables;wherein receiving a query includes receiving a query that involves a file that is associated with the particular XML schema; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›8.↳ 1The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing data from files contained in a partic…d2
The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing data from files contained in a particular portion of a file system directory to storage in a corresponding set of one or more particular database tables;wherein receiving a query includes receiving a query that involves the particular portion of the file system directory; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›9.↳ 1The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing data from files contained in a partic…d2
The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing data from files contained in a particular portion of a file system directory to storage in a corresponding set of one or more particular database views;wherein receiving a query includes receiving a query that involves the particular portion of the file system directory; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database views.
›10.↳ 1The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing identifiable subsets of data from fil…d2
The method of claim 1,nwherein the one or more constraints includes a physical constraint that restricts storing identifiable subsets of data from files contained in a particular portion of a file system directory to storage in corresponding particular database table partitions;wherein receiving a query includes receiving a query that involves the particular portion of the file system directory; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to one or more corresponding particular database table partitions.
›11.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files associated with particular metadata;wherein receiving a query includes receiving a query that involves the particular metadata; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the particular set of one or more folders.
›12.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files associated with particular metadata;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables; andwherein receiving a query includes receiving a query that involves the particular set of one or more folders; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.
›13.↳ 1The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from …d2
The method of claim 1,nwherein the one or more constraints includes a logical constraint that restricts a particular set of one or more folders, from a file system directory, to containing only files associated with particular metadata;wherein the one or more constraints includes a physical constraint that restricts storing data from the files contained in the particular set of one or more folders to storage in a corresponding set of one or more particular database tables; andwherein receiving a query includes receiving a query that involves the particular metadata; andwherein re-writing the query includes re-writing the query so that the re-written query is directed, at least in part, to the corresponding set of one or more particular database tables.