1. Field
The present application relates to the field of directory services. More particularly, the present application relates to the application of electronic directory services, e.g., X.500 or LDAP, in relational databases, to table structures in database arrangements used for searching, and to methods for searching databases.
2. Description of the Related Art
A Relational Database Management System (RDBMS) provides facilities for applications to store and manipulate data. Amongst the many features that an RBDMS offers are data integrity, consistency, concurrency, indexing mechanisms, query optimisation, recovery, roll-back, security. RBDMS also provide many tools for performance tuning, import/export, backup, auditing and application development.
RDBMS are the preferred choice of most large scale managers of data. RDBMS are readily available and known to be reliable and contain many useful management tools. There is a large base of RDBMS installations and therefore a large amount of existing expertise and investment in people and procedures to run these systems, and so data managers are looking to use this when acquiring new systems. Most relational database products support the industry standard SQL (Structured Query Language).
There has also been a move towards Object Oriented systems, which provide data extensibility and the ability to handle arbitrarily complex data items. In addition, many corporations and governmental departments have a large number of database applications, which are not interconnected. Data managers are looking for solutions which enable them to integrate their data, and to simplify the management of that data. Electronic directories provide data managers with a tool to achieve these objectives. Some electronic directories are standardized. X.500 is the International Standard for Electronic Directories [CCITT89 or ITU93]. These standards define the services, protocols and information model of a very flexible and general purpose directory. X.500 is applicable to information systems where the data is fairly static (e.g. telephone directory) but may need to be distributed (e.g. across organisations or countries), extensible (e.g. store names, addresses, job titles, devices etc.), object oriented (i.e. to enforce rules on the data) and/or accessed remotely. Electronic directories, such as X.500 and its associated standards, provide a framework and a degree of functionality that enables data managers to achieve their objectives.
Typically, data managers prefer to implement an electronic directory, e.g., an X.500 directory, with all the flexibility of object-oriented systems, but using an SQL product so that the system can achieve the scalability and performance inherent in relational systems coupled with the stability, robustness, portability and cost-effectiveness of current SQL products.
One example of an electronic directory implementation is described in U.S. Ser. No. 09/427,267 and its corresponding Australian Patent 712451 both of which are incorporated herein in their entirety by reference. In the search strategies for this implementation, at a conceptual level, hierarchy tables, e.g., NAME, DIT and TREE, are used to maintain relationships between objects in a hierarchy. These hierarchy tables are arranged according to one row per object. Object tables, e.g., SEARCH and ENTRY, manage values within an object. These object tables are arranged according to one row per value. Every object has a corresponding row in the hierarchy tables and every attribute value has a corresponding row in the object tables. In this implementation, the object table used for searching objects contains rows of the form (EID, AID, VID, Norm), where EID identifies the object to which the value belongs, AID identifies the attribute type of the value, VID identifies one of a possible number of attribute values in the one entry, and Norm contains the syntax normalized value. Attribute tables, e.g., attribute, define information about attribute types. The attribute table used contains rows of the form (AID, SYX, DESC, OBJECT ID).
It has been discovered that improvements to electronic directory implementations may be achieved for arranging and searching databases for complex data types.
The present application relates to the storing and/or searching for data types using some form of indicia, such as one of the components contained in stored data, an identifier of stored data and/or a manipulation of stored data. This implementation facilitates the searching of complex data types by adding new search and/or attribute tables that store information relating to data entries, predetermined information considered to be of assistance or useful in searching for particular entries of a database, such as, by not limited to including component identifier (CID) information representing an individual component and/or component value identifier information (CVID) representing a multi-valued component or components used for searching. These new tables are referred to herein as subsearch tables and/or subattribute tables which serve to store components of values, and facilitate the searching of individual components and/or multi-valued components. However, such tables can be referenced with any name.
In one embodiment, the present application provides a method of arranging data in a database. The method includes creating a first table adapted for storing the data and having one row for each data entry, and creating a second table adapted for storing data components and having one row for each component of the stored data type. Preferably, the data is a structured data type or a string data.
The present application also provides a database and/or directory having a data storage arrangement. Throughout the remainder of the specification, reference is made to a database, however this equally applies to a directory services system. The data storage arrangement includes a first table directed to a hierarchy which defines a relationship between objects and configured to have one row per object, a second table directed to objects which define one or more values within each object and configured to have one row per value, and a third table directed to one or more selected components or representations of values and configured to have one row for each component of each value. Preferably, the database is a part of a directory services system, such as X.500 or LDAP services system.
The present application also provides a method of searching a database for a given data entry. In this embodiment, the database has a first table adapted for storing data and having one row for each data entry, and a second table adapted for storing data components or representations and having one row for each component of the stored data. The searching method includes determining a component or representation of a given data entry, executing one of an exact or initial matching on the second table in order to locate the component or representation, and returning the given data entry matching the component or representation located.
Throughout the specification, reference to ‘component’ may instead or in addition include ‘representations’ of values, e.g. reverse indexing or pointers or fingerprints or checksum, or some suitable smaller representation of relatively large data.
Preferred embodiments of the present application will now be described with reference to the accompanying drawings, in which
a illustrates a principle and conceptual design of an exemplary database according to the present application;
b illustrates a logical and physical design of an exemplary database according to the present application including a subsearch table and a subattribute table;
a illustrates an exemplary implementation of a database design and is only one type of database to which the methods and arrangements of the present application can be applied. A more detailed description of this database design can be found in U.S. Ser. No. 09/427,267 which is incorporated herein in its entirety by reference.
For general search services filters are applied to values and attributes in the object table, e.g., the search table. An example of a general filter is “NORM LIKE ‘%RICK HARVEY%’”. For particular search services (described in more detail below) a clause may be added the SQL statement that includes a component identifier, which addresses a particular component of a data type and an exact or initial (or “begins with”) filter is applied to components in a subsearch table instead of the search table. An example of such a clause is “AND CID=n”, and an example of an exact filter is “NORM=‘RICK HARVEY’”.
Referring to
The attribute table 5 describes or references information in search table 3, and the subattribute table 6 describes or references information in subsearch table 4. The subattribute table 6 has similar fields as the attribute table 5, but substitutes CID field 9 for AID field 10. The CID field 9 is used to identify one or more components in the subsearch table 4.
The subsearch table 4 preferably stores information that improves searching performance or components of complex data types. Other components stored in the subsearch table can be those that improve the manageability of the database. In other words, it is not a requirement that every value in a data entry is included in the subsearch table.
Referring to
To illustrate, if a desired search argument is structured with a general filter, the base object and whole tree searches 11 would use the search table 3, the one level search 12 would use DIT table 14 and search table 3, and the subtree search 13 would use tree table 15 and search table 3. An example of an SQL statement for such a search may be:
One way to improve the efficiency of such a search is to utilize a subsearch table and search one or more components associated with the stored data. In such instances the database may be able to use an index to the component in the string or structure thus avoiding a scan of a large number of values. An example of an SQL statement for such a search would be:
Structured Attributes
Methods according to the present application can be used in various other applications. One application is the security area where directories are increasingly being used by Certification Authorities to store standardized certificates. An example of such a certificate is an X.509 certificate. Certificates such as the X.509 can be referred to as ‘complex’ attributes because they contain many components. However, the present application should not be limited to only these types of certificates. It will be understood that the present application can be utilized with any form of information having components.
When storing such certificates consideration should be given as to how the certificate is stored so that retrieval of a certificate is quick and reliable (i.e., the desired certificate is actually retrieved). The methods and database arrangements of the present application achieve this by finding and managing one or more of the components of the data in the certificate, e.g., serial number, expiration date and issuer.
To illustrate an implementation for this embodiment, assume that a simple certificate consists of information similar to what a credit card holds, e.g., a serial number, an expiration date, and the cardholders name. This simple certificate has three components or fields, namely a number field, a date field and a string field. In this simplified example, the normalized value of certificate 20 that would be stored in the search table 3 (of the form in
(xx, yy, zz, “123456 20000806123000 RICK HARVEY)”
and the subsearch table 4 may store, for example, three rows—one for each component of the certificate. Each row of the subsearch table would be in the form of
(xx, yy, zz, 0, 0, “123456”)
(xx, yy, zz, 1, 0, “20000806123000”)
(xx, yy, zz, 2, 0, “RICK HARVEY”)
where xx, yy and zz are integers corresponding to fields in the particular table design, such as EID, AID and VID.
A search for a certificate that was issued to “RICK HARVEY” that utilized the search table 3 may use the following SQL statement:
A search for a certificate that was issued to “RICK HARVEY” would be more efficient if subsearch table 4 were utilized when applying an exact or initial filter and a component identifier were added to the search argument. In this instance, the following SQL statement may be used:
In the above example, a search with the component identifier (or index) CID=4 is used because it is known from the design of subsearch table 4 or from subattribute table 6, that index CID=4 is a string representing cardholders name. A query where the index CID is set to 4, and the filter is “NORM=‘RICK HARVEY’” should return Rick Harvey's certificate. This query is considered to be better because it can make use of an appropriate index making the search faster and increasing the degree of certainty that the search will find the correct certificate or certificates. It should be noted that the actual designation of characters/letter or numerals in the subsearch table design is arbitrary, and may be designed in whatever manner to suit the particular application.
Referring again to
String Attributes
The present application can also be utilized for non-complex data types, such as string data types. Examples of string data types include multi-word sentences, multi-line paragraphs of text, and a multi-line postal addresses. In this case, an attribute value that is a simple sentence may be stored in a single row in the search table as:
(1122, 33, 0, “MANY WORD SENTENCE”)
where columns (or fields) are defined as (EID, AID, VID, NORM). A query searching the string data type for ‘WORD’ would involve looking at the rows for the part-word “%WORD%, which is considered a relatively slow search. To improve searching of such data the string is stored as components in the subsearch table 4 so that the string “MANY WORD SENTENCE” would be stored in three rows as follows:
(xx, yy, zz, 0, 0, “MANY”)
(xx, yy, zz, 0, 1, “WORD”)
(xx, yy, zz, 0, 2, “SENTENCE”)
where the columns are defined as (EID, AID, VID, CID, CVID, NORM), respectively. In this example, the filter applied would then use the subsearch table 4 instead of the search table 3 and the following SQL statement could be used to search for “WORD”:
The present application also has general applicability to the problem of being able to add one or more indices to a given attribute for the purpose of increasing performance for certain types of queries. Adding indices provides a different path in order to find an attribute, such as for example, reverse indexing. In this case, there may only be one component in the subsearch table. The component in effect represents an alternate form of that attribute value.
In particular, the subsearch table can cope with the problem of “ends in” searches or searching for values where an initial portion of data stored is relatively highly repetitive (such as distinguished names, MAC addresses, telephone numbers, full qualified file names, etc) by storing a reversed form of the value and thereby giving effect to having a reversed index on the attribute. For example, referring to
When searching for a telephone extension, which is typically the end portion of a telephone number, a search may be expressed as a string search for “*1234” (the star being a wild card). If only search table 32 were used, then the performance of the search would be slow because indexes are only possible for “begins with” or “exact” searches. However, with the attribute stored in the subsearch table 33 in reverse, the subsearch table could be used to do an equivalent search, e.g. “4321*” which is considered to be very fast.
More particularly, the search table 32 might store a telephone number for a given person as:
Another example of an alternative index is the storing of a checksum of a binary value, e.g., photograph or audio.
Still another example of an alternative index is the storing of a fingerprint being a smaller representation of the data, such as a smaller representation of a photograph.
Although the present application is disclosed with reference to an X.500 directory services system, the application should not be limited to the system and methods disclosed therein. As will be understood from a reading of the specification as a whole, the present application may be applied or implemented in a number of different directory services systems or use a variety of methods.
Number | Date | Country | Kind |
---|---|---|---|
PQ6785 | Apr 2000 | AU | national |
The present application is a continuation-in-part of U.S. Ser. No. 09/427,267 filed Oct. 26, 1999 now abandoned, which is a divisional of U.S. Ser. No. 08/793,575 filed May 22, 1997 (now U.S. Pat. No. 6,052,681), which is a National Stage of International Application No. PCT/AU95/00560 filed Aug. 30, 1995, each of which are incorporated herein in their entirety by reference.
Number | Name | Date | Kind |
---|---|---|---|
5117349 | Tirfing et al. | May 1992 | A |
5291583 | Bapat | Mar 1994 | A |
5333317 | Dann | Jul 1994 | A |
5388255 | Pytlik et al. | Feb 1995 | A |
5412804 | Krishna | May 1995 | A |
5414812 | Filip et al. | May 1995 | A |
5442690 | Nazif et al. | Aug 1995 | A |
5491817 | Gopal et al. | Feb 1996 | A |
5530853 | Schell et al. | Jun 1996 | A |
5548726 | Pettus | Aug 1996 | A |
5634053 | Noble et al. | May 1997 | A |
5649182 | Reitz | Jul 1997 | A |
5664172 | Antoshenkov | Sep 1997 | A |
5692181 | Anand et al. | Nov 1997 | A |
5794232 | Mahlum et al. | Aug 1998 | A |
5806061 | Chaudhuri et al. | Sep 1998 | A |
5864840 | Leung et al. | Jan 1999 | A |
5878415 | Olds | Mar 1999 | A |
5953716 | Madnick et al. | Sep 1999 | A |
5970497 | Burrows | Oct 1999 | A |
5987446 | Corey et al. | Nov 1999 | A |
6003022 | Eberhard et al. | Dec 1999 | A |
6003050 | Silver et al. | Dec 1999 | A |
6009422 | Ciccarelli | Dec 1999 | A |
6016497 | Suver | Jan 2000 | A |
6016499 | Ferguson | Jan 2000 | A |
6044442 | Jesionowski | Mar 2000 | A |
6052681 | Harvey | Apr 2000 | A |
6085188 | Bachmann et al. | Jul 2000 | A |
6112198 | Lohman et al. | Aug 2000 | A |
6112304 | Clawson | Aug 2000 | A |
6115703 | Bireley et al. | Sep 2000 | A |
6119129 | Traversat et al. | Sep 2000 | A |
6122627 | Carey et al. | Sep 2000 | A |
6182153 | Hollberg et al. | Jan 2001 | B1 |
6192405 | Bunnell | Feb 2001 | B1 |
6195653 | Bleizeffer et al. | Feb 2001 | B1 |
6199062 | Byrne et al. | Mar 2001 | B1 |
6236988 | Aldred | May 2001 | B1 |
6236997 | Bodamer et al. | May 2001 | B1 |
6356892 | Corn et al. | Mar 2002 | B1 |
6370522 | Agarwal et al. | Apr 2002 | B1 |
6728720 | Lenzie | Apr 2004 | B1 |
6732360 | Seo et al. | May 2004 | B1 |
6879990 | Boyer et al. | Apr 2005 | B1 |
20020059199 | Harvey | May 2002 | A1 |
20030105749 | Harvey | Jun 2003 | A1 |
20030191759 | Harvey | Oct 2003 | A1 |
20030208478 | Harvey | Nov 2003 | A1 |
20060020613 | Harvey | Jan 2006 | A1 |
Number | Date | Country |
---|---|---|
0 689 148 | May 1995 | EP |
2 329 044 | Mar 1999 | GB |
9607147 | Mar 1996 | WO |
9634350 | Oct 1996 | WO |
Number | Date | Country | |
---|---|---|---|
20010037339 A1 | Nov 2001 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 08793575 | US | |
Child | 09427267 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09427267 | Oct 1999 | US |
Child | 09827738 | US |