Patentable/Patents/US-7296013
US-7296013

Replacing an unavailable element in a query

PublishedNovember 13, 2007
Assigneenot available in USPTO data we have
Inventorsnot available in USPTO data we have
Technical Abstract

A method, apparatus, system, and signal-bearing medium that in an embodiment replace an element in a query with a backup if the element is not available, but the backup is available. An element may also be removed from the query if the element is not required. In various embodiments, the element may be a table or a user-defined function. In this way, the query may still execute even if the element is not available.

Patent Claims
12 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. An apparatus comprising: means for receiving a first query that comprises a specification of a first element, wherein the first element comprises a user-defined function, wherein the user-defined function comprises a method that manipulates an object data instance; means for determining whether the first element is available; means for determining whether a first backup for the first element is available; means for replacing the specification of the first element in the first query with a specification of the first backup if the first element is not available and the first backup is available; means for refraining from replacing the specification of the first element if the first element is available or the first backup is not available; means for removing the specification of the first element from the first query if the first element is specified by a user as not required, the first element is not available, and the first backup is not available; means for refraining from removing the specification of the first element if the first element is specified by the user as required, the first element is available, or the first backup is available; and means for executing the first query, which returns results.

2

2. The apparatus of claim 1 , wherein the first element comprises a table.

3

3. The apparatus of claim 1 , further comprising: means for determining whether an elapsed time for the first query exceeds a threshold.

4

4. The apparatus of claim 3 , further comprising: means for creating a second query with a second backup substituted for a second element if the elapsed time exceeds the threshold.

5

5. A storage medium encoded with instructions, wherein the instructions when executed comprise: receiving a first query that comprises a specification of a first element, wherein the first element comprises a user-defined function, wherein the user-defined function comprises a method that manipulates an object data instance; determining whether the first element is available; determining whether a first backup for the first element is available; replacing the specification of the first element in the first query with a specification of the first backup if the first element is not available and the first backup is available; refraining from replacing the specification of the first element if the first element is available or the first backup is not available; removing the specification of the first element from the first query if the first element is specified by a user as not required, the first element is not available, and the first backup is not available; refraining from removing the specification of the first element if the first element is specified by the user as required, the first element is available, or the first backup is available; executing the first query, which returns results; and determining whether an elapsed time for the first query exceeds a threshold.

6

6. The storage medium of claim 5 , wherein the first element comprises a table.

7

7. The storage medium of claim 5 , further comprising: creating a second query with a second backup substituted for a second element if the elapsed time exceeds the threshold.

8

8. The storage medium of claim 7 , further comprising: determining whether the second query is executing faster than the first query.

9

9. A computer system comprising: a processor; and a main memory encoded with instructions, wherein the instructions when executed on the processor comprise: receiving a first query that comprises a specification of a first element, wherein the first element comprises a user-defined function, wherein the user-defined function comprises a method that manipulates an object data instance, determining whether the first element is available, determining whether a first backup for the first element is available, replacing the specification of the first element in the first query with a specification of the first backup if the first element is not available and the first backup is available, refraining from replacing the specification of the first element if the first element is available or the first backup is not available. removing the first element from the first query if the first element is specified by a user as not required, the first element is not available, and the first backup is not available, refraining from removing the first element from the first query if the first element is specified by a user as required, the first element is available, or the first backup is available, executing the first query, which returns results, creating a second query with a second backup substituted for a second element if an elapsed time for the first query exceeds a threshold, and refraining from creating the second query if the elapsed time for the first query does not exceed the threshold.

10

10. The computer system of claim 9 , wherein the first element comprises a table.

11

11. The computer system of claim 9 , wherein the instructions further comprise: stopping whichever of the first query and the second query is slower.

12

12. The computer system of claim 11 , wherein the instructions further comprise: removing a user-defined function that is not required from whichever of the first query and the second query remains; and running the user-defined function in a background mode.

Classification Codes (CPC)

Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.

Patent Metadata

Filing Date

January 8, 2004

Publication Date

November 13, 2007

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “Replacing an unavailable element in a query” (US-7296013). https://patentable.app/patents/US-7296013

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.