Platform-agnostic system and method for efficient queries of layered databases

The system optimizes database queries by identifying root attributes and bypassing unnecessary layers, addressing performance and resource issues in conventional database systems, ensuring efficient and accurate data retrieval.

US12817868B1Active Publication Date: 2026-12-01BANK OF AMERICA CORP
View PDF 21 Cites 0 Cited by

Patent Information

Application Number
US19/237550
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2026-12-01
Estimated Expiration
2045-06-13

AI Technical Summary

Technical Problem

Conventional database systems face performance issues and resource consumption due to the need to process multiple layers of joined data objects when querying, leading to inefficiencies and potential data locks.

Method used

A system that includes a root mapper module to identify root attributes and base layer data objects, allowing a query execution module to bypass unnecessary database layers and execute optimized 'smart' queries directly, using a query receiver module to validate and transform user-generated queries into efficient database queries.

Benefits of technology

This approach enhances database performance by reducing computational resources required and avoiding data locks, enabling accurate and efficient data retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12817868-D00000_ABST
    Figure US12817868-D00000_ABST
Patent Text Reader

Abstract

Systems, computer program products, and methods are described herein for querying layered databases. The system is database platform agnostic, and comprises a root mapper module configured to receive a user-generated query, where the user-generated query comprises a plurality of attributes; for each attribute of the plurality of attributes, recursively iterate through a plurality of layers of a database to identify a root attribute and a base layer data object associated with each attribute; and update a data table based on the root attribute and the base layer data object associated with each attribute. The system further includes a query execution module configured to execute a smart query, where the smart query is configured to bypass one or more of the plurality of the layers of the database based on the updated data table.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNOLOGICAL FIELD

[0001] Embodiments of the disclosure relate to platform-agnostic systems for efficient queries of layered databases.BACKGROUND

[0002] In conventional database systems, a database often including several layers of joined data objects stored over the underlying data objects. Thus, when the database is queried using a user-generated query, the database engine must process each layer of the query before accessing an underlying data object (i.e., the data object at a table level). This additional processing has the undesired effect of slowing performance of the database engine, consuming additional memory, and potentially encountering unnecessary data locks at a layer level. Thus, there remains a need for a system that maintains the ability of users to directly query a layered database, while reducing the amount of computation resources required to process said queries.BRIEF SUMMARY

[0003] Systems, methods, and computer program products are provided for efficiently querying layered databases

[0004] In one aspect, a system for querying layered databases is presented. The system comprising: a root mapper module, wherein the root mapper module is configured to: receive a user-generated query, where the user-generated query includes a plurality of attributes; for each attribute of the plurality of attributes, recursively iterate through a plurality of layers of a database to identify a root attribute and a base layer data object associated with each attribute; and update a data table based on the root attribute and the base layer data object associated with each attribute; and a query execution module, where the query execution module is configured to execute a smart query, wherein the smart query is configured to bypass one or more of the plurality of the layers of the database based on the updated data table.

[0005] In some embodiments, the system further includes a query receiver module, where the query receiver module is configured to receive the user-generated query from an end-point device; attempt to validate the user-generated query; and based on failing to validate the user-generated query, execute the root mapper module.

[0006] In some embodiments, the query receiver module is further configured to, based on validating the user-generated query, execute a stored smart query associated with the user-generated query; and return a result of the stored smart query to a user.

[0007] In some embodiments, the system further includes a query builder module, where the query module is configured to identify each attribute of the plurality of attributes of the user-generated query; for each attribute, identify an associated root attribute by querying the updated data table; and replace each attribute of the user-generated query with the associated root attribute, generating the smart query.

[0008] In some embodiments, attempting to validate the user-generated query includes identifying a stored smart query associated with the user-generated query.

[0009] In some embodiments, the query execution module is further configured to return an output of the smart query to an end-point device.

[0010] In some embodiments, the user-generated query is a Structured Query Language (SQL) query.

[0011] In some embodiments, one or more of the bypassed layers of the database is a locked layer.

[0012] The above summary is provided merely for purposes of summarizing some example embodiments to provide a basic understanding of some aspects of the present disclosure. Accordingly, it will be appreciated that the above-described embodiments are merely examples and should not be construed to narrow the scope or spirit of the disclosure in any way. It will be appreciated that the scope of the present disclosure encompasses many potential embodiments in addition to those here summarized, some of which will be further described below.BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Having thus described embodiments of the disclosure in general terms, reference will now be made the accompanying drawings. The components illustrated in the figures may or may not be present in certain embodiments described herein. Some embodiments may include fewer (or more) components than those shown in the figures.

[0014] FIGS. 1A-1C illustrate technical components of an exemplary distributed computing environment for a system for querying layered databases, in accordance with an embodiment of the invention;

[0015] FIG. 2 illustrates an example functional system architecture, in accordance with an embodiment of the invention; and

[0016] FIG. 3 illustrates a process flow for querying layered databases, in accordance with an embodiment of the invention.DETAILED DESCRIPTIONOverview

[0017] In conventional database systems, a database often including several layers of joined data objects stored over the underlying data objects. Thus, when the database is queried using a user-generated query, the database engine must process each layer of the query before accessing an underlying data object (i.e., the data object at a table level). This additional processing has the undesired effect of slowing performance of the database engine, consuming additional memory, and potentially encountering unnecessary data locks at a layer level. Thus, there remains a need for a system that maintains the ability of users to directly query a layered database, while reducing the amount of computation resources required to process said queries.

[0018] Specifically, users frequently interact with database systems using high-level or natural-language queries that refer to derived or indirect attributes within a relational database. These user-level attributes are often abstractions of underlying normalized or root-level data fields. Traditional query systems do not adequately translate these queries into optimized database queries that reference root-level attributes, leading to inefficiencies or errors in data retrieval. Thus, the prevent invention provides a system and method for translating user-generated database queries that reference derived or indirect attributes into equivalent “smart” queries that utilize root-level or canonical attributes. The system allows for more accurate, efficient, and semantically correct data retrieval by performing automated query transformation based on schema analysis, attribute mapping, and query rewriting techniques.

[0019] Embodiments of the present disclosure will now be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all, embodiments of the present disclosure are shown. Indeed, the present disclosure may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will satisfy applicable legal requirements. Thus, it should be understood that each block of the block diagrams and flowchart illustrations may be implemented in the form of a computer program product; an entirely hardware embodiment; an entirely firmware embodiment; a combination of hardware, computer program products, and / or firmware; and / or apparatuses, systems, computing devices, computing entities, and / or the like carrying out instructions, operations, steps, and similar words used interchangeably (e.g., the executable instructions, instructions for execution, program code, and / or the like) on a computer-readable storage medium for execution. For example, retrieval, loading, and execution of code may be performed sequentially such that one instruction is retrieved, loaded, and executed at a time. In some exemplary embodiments, retrieval, loading, and / or execution may be performed in parallel such that multiple instructions are retrieved, loaded, and / or executed together. Thus, such embodiments may produce specifically-configured machines performing the steps or operations specified in the block diagrams and flowchart illustrations. Accordingly, the block diagrams and flowchart illustrations support various combinations of embodiments for performing the specified instructions, operations, or steps.

[0020] Where possible, any terms expressed in the singular form herein are meant to also include the plural form and vice versa, unless explicitly stated otherwise. Also, as used herein, the term “a” and / or “an” shall mean “one or more,” even though the phrase “one or more” is also used herein. Furthermore, when it is said herein that something is “based on” something else, it may be based on one or more other things as well. In other words, unless expressly indicated otherwise, as used herein “based on” means “based at least in part on” or“based at least partially on.” Like numbers refer to like elements throughout.

[0021] As used herein, an “entity” may be any institution employing information technology resources and particularly technology infrastructure configured for processing large amounts of data. Typically, these data can be related to the people who work for the organization, its products or services, the customers or any other aspect of the operations of the organization. As such, the entity may be any institution, group, association, financial institution, establishment, company, union, authority or the like, employing information technology resources for processing large amounts of data.

[0022] As described herein, a “user” may be an individual associated with an entity. As such, in some embodiments, the user may be an individual having past relationships, current relationships or potential future relationships with an entity. In some embodiments, the user may be an employee (e.g., an associate, a project manager, an IT specialist, a manager, an administrator, an internal operations analyst, or the like) of the entity or enterprises affiliated with the entity.

[0023] As used herein, a “user interface” may be a point of human-computer interaction and communication in a device that allows a user to input information, such as commands or data, into a device, or that allows the device to output information to the user. For example, the user interface includes a graphical user interface (GUI) or an interface to input computer-executable instructions that direct a processor to carry out specific functions. The user interface typically employs certain input and output devices such as a display, mouse, keyboard, button, touchpad, touch screen, microphone, speaker, LED, light, joystick, switch, buzzer, bell, and / or other user input / output device for communicating with one or more users.

[0024] As used herein, “authentication credentials” may be any information that can be used to identify of a user. For example, a system may prompt a user to enter authentication information such as a username, a password, a personal identification number (PIN), a passcode, physical information (e.g., iris recognition, retina scans, fingerprints, finger veins, palm veins, palm prints, digital bone anatomy / structure and positioning (distal phalanges, intermediate phalanges, proximal phalanges, and the like), an answer to a security question, a unique intrinsic user activity, such as making a predefined motion with a user device. This authentication information may be used to authenticate the identity of the user (e.g., determine that the authentication information is associated with the account) and determine that the user has authority to access an account or system. In some embodiments, the system may be owned or operated by an entity. In such embodiments, the entity may employ additional computer systems, such as authentication servers, to validate and certify resources inputted by the plurality of users within the system. The system may further use its authentication servers to certify the identity of users of the system, such that other users may verify the identity of the certified users. In some embodiments, the entity may certify the identity of the users. Furthermore, authentication information or permission may be assigned to or required from a user, application, computing node, computing cluster, or the like to access stored data within at least a portion of the system.

[0025] As used herein, “operatively coupled,” means that the components may be formed integrally with each other, or may be formed separately and coupled together. Furthermore, “operatively coupled” means that the components may be formed directly to each other, or to each other with one or more components located between the components that are operatively coupled together. Furthermore, “operatively coupled” may mean that the components are detachable from each other, or that they are permanently coupled together. Furthermore, operatively coupled components may mean that the components retain at least some freedom of movement in one or more directions or may be rotated about an axis (i.e., rotationally coupled, pivotally coupled). Furthermore, “operatively coupled” may mean that components may be electronically connected and / or in fluid communication with one another.

[0026] As used herein, an “interaction” may refer to any communication between one or more users, one or more entities or institutions, one or more devices, nodes, clusters, or systems within the distributed computing environment described herein. For example, an interaction may refer to a transfer of data between devices, an accessing of stored data by one or more nodes of a computing cluster, a transmission of a requested task, or the like.

[0027] As used herein, an “engine” may refer to a computational module implemented in hardware, software, or a combination thereof, configured to execute predefined processes on input data to generate an output. An engine may perform algorithmic operations, execute machine learning models, apply rule-based logic, manage resource allocation, or facilitate automation within a computing system. An engine may operate as an independent entity or as a component (e.g., subsystem) within a larger system, interacting with other engines to achieve a defined objective.

[0028] As used herein, “determining” may encompass a variety of actions. For example, “determining” may include calculating, computing, processing, deriving, investigating, ascertaining, and / or the like. Furthermore, “determining” may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and / or the like. Also, “determining” may include resolving, selecting, choosing, calculating, establishing, and / or the like. Determining may also include ascertaining that a parameter matches a predetermined criterion, including that a threshold has been met, passed, exceeded, satisfied, etc.Example System Environment

[0029] FIGS. 1A-1C illustrate technical components of an exemplary distributed computing environment 100 for a system for querying layered databases, in accordance with an embodiment of the invention. As shown in FIG. 1A, the distributed computing environment 100 contemplated herein may include a system 130, an end-point device(s) 140, and a network 110 over which the system 130 and end-point device(s) 140 communicate therebetween. FIG. 1A illustrates only one example of an embodiment of the distributed computing environment 100, and it will be appreciated that in other embodiments one or more of the systems, devices, and / or servers may be combined into a single system, device, or server, or be made up of multiple systems, devices, or servers. Also, the distributed computing environment 100 may include multiple systems, same or similar to system 130, with each system providing portions of the necessary operations (e.g., as a server bank, a group of blade servers, or a multi-processor system).

[0030] In some embodiments, the system 130 and the end-point device(s) 140 may have a client-server relationship in which the end-point device(s) 140 are remote devices that request and receive service from a centralized server, i.e., the system 130. In some other embodiments, the system 130 and the end-point device(s) 140 may have a peer-to-peer relationship in which the system 130 and the end-point device(s) 140 are considered equal and all have the same abilities to use the resources available on the network 110. Instead of having a central server (e.g., system 130) which would act as the shared drive, each device that is connect to the network 110 would act as the server for the files stored on it.

[0031] The system 130 may represent various forms of servers, such as web servers, database servers, file servers, or the like, as well as a range of digital computing devices, including laptops, desktops, video recorders, audio / video players, radios, workstations, and / or the like. Additionally, system 130 may include a variety of auxiliary network devices, encompassing wearable devices, Internet-of-things (IoT) devices, electronic kiosk devices, entertainment consoles, mainframes, and / or the like, in any combination to cater to the complexity and diversity of contemporary digital ecosystems.

[0032] The end-point device(s) 140 may encompass an array of electronic devices, such as personal digital assistants, cellular telephones, smartphones, laptops, desktops, and merchant input devices like point-of-sale (POS) systems, electronic payment kiosks, and automated teller machines (ATMs). End-point device(s) 140 may also include edge devices like routers, routing switches, integrated access devices (IAD), and / or the like, and devices capable of interfacing with 5G networks, delivering enhanced data processing and connectivity.

[0033] The network 110 may include a distributed network architecture that spans a variety of network types, facilitating a cohesive data communication network that can be managed jointly or individually. The network architecture supports shared communication as well as distributed processing across platforms such as telecommunication networks, local area networks (LAN), wide area networks (WAN), global area networks (GAN), the Internet infrastructure, and / or the like. Network 110 may also integrate emerging networking technologies, including software-defined networking (SDN), network function virtualization (NFV), and next-generation wireless communication standards like 5G. Network 110 may employ secure or unsecure, as well as wireless, wired, and optical interconnection technologies, and / or the like, to accommodate a spectrum of communication and processing needs.

[0034] It is to be understood that the structure of the distributed computing environment and its components, connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosures described and / or claimed in this document. In one example, the distributed computing environment 100 may include more, fewer, or different components. In another example, some or all of the portions of the distributed computing environment 100 may be combined into a single portion or all of the portions of the system 130 may be separated into two or more distinct portions.

[0035] FIG. 1B illustrates an exemplary component-level structure of the system 130, in accordance with an embodiment of the invention. As shown in FIG. 1B, the system 130 may include a processor 102, memory 104, input / output (I / O) device 116, and a storage device 110. The system 130 may also include a high-speed interface 108 connecting to the memory 104, and a low-speed interface 112 connecting to low speed bus 114 and storage device 110. Each of the components 102, 104, 108, 110, and 112 may be operatively coupled to one another using various buses and may be mounted on a common motherboard or in other manners as appropriate. As described herein, the processor 102 may include a number of subsystems to execute the portions of processes described herein. Each subsystem may be a self-contained component of a larger system (e.g., system 130) and capable of being configured to execute specialized processes as part of the larger system.

[0036] The processor 102 can process instructions, such as instructions of an application that may perform the functions disclosed herein. These instructions may be stored in the memory 104 (e.g., non-transitory storage device) or on the storage device 110, for execution within the system 130 using any subsystems described herein. It is to be understood that the system 130 may use, as appropriate, multiple processors, along with multiple memories, and / or I / O devices, to execute the processes described herein.

[0037] The memory 104 stores information within the system 130. In one implementation, the memory 104 is a volatile memory unit or units, such as volatile random access memory (RAM) having a cache area for the temporary storage of information, such as a command, a current operating state of the distributed computing environment 100, an intended operating state of the distributed computing environment 100, instructions related to various methods and / or functionalities described herein, and / or the like. In another implementation, the memory 104 is a non-volatile memory unit or units. The memory 104 may also be another form of computer-readable medium, such as a magnetic or optical disk, which may be embedded and / or may be removable. The non-volatile memory may additionally or alternatively include an EEPROM, flash memory, and / or the like for storage of information such as instructions and / or data that may be read during execution of computer instructions. The memory 104 may store, recall, receive, transmit, and / or access various files and / or information used by the system 130 during operation.

[0038] The storage device 106 is capable of providing mass storage for the system 130. In one aspect, the storage device 106 may be or contain a computer-readable medium, such as a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid state memory device, or an array of devices, including devices in a storage area network or other configurations. A computer program product can be tangibly embodied in an information carrier. The computer program product may also contain instructions that, when executed, perform one or more methods, such as those described above. The information carrier may be a non-transitory computer- or machine-readable storage medium, such as the memory 104, the storage device 104, or memory on processor 102.

[0039] The high-speed interface 108 manages bandwidth-intensive operations for the system 130, while the low speed controller 112 manages lower bandwidth-intensive operations. Such allocation of functions is exemplary only. In some embodiments, the high-speed interface 108 is coupled to memory 104, input / output (I / O) device 116 (e.g., through a graphics processor or accelerator), and to high-speed expansion ports 111, which may accept various expansion cards (not shown). In such an implementation, low-speed controller 112 is coupled to storage device 106 and low-speed expansion port 114. The low-speed expansion port 114, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device such as a switch or router, e.g., through a network adapter.

[0040] The system 130 may be implemented in a number of different forms. For example, the system 130 may be implemented as a standard server, or multiple times in a group of such servers. Additionally, the system 130 may also be implemented as part of a rack server system or a personal computer such as a laptop computer. Alternatively, components from system 130 may be combined with one or more other same or similar systems and an entire system 130 may be made up of multiple computing devices communicating with each other.

[0041] FIG. 1C illustrates an exemplary component-level structure of the end-point device(s) 140, in accordance with an embodiment of the invention. As shown in FIG. 1C, the end-point device(s) 140 includes a processor 152, memory 154, an input / output device such as a display 156, a communication interface 158, and a transceiver 160, among other components. The end-point device(s) 140 may also be provided with a storage device, such as a microdrive or other device, to provide additional storage. Each of the components 152, 154, 158, and 160, are interconnected using various buses, and several of the components may be mounted on a common motherboard or in other manners as appropriate.

[0042] The processor 152 is configured to execute instructions within the end-point device(s) 140, including instructions stored in the memory 154, which in one embodiment includes the instructions of an application that may perform the functions disclosed herein, including certain logic, data processing, and data storing functions. The processor may be implemented as a chipset of chips that include separate and multiple analog and digital processors. The processor may be configured to provide, for example, for coordination of the other components of the end-point device(s) 140, such as control of user interfaces, applications run by end-point device(s) 140, and wireless communication by end-point device(s) 140.

[0043] The processor 152 may be configured to communicate with the user through control interface 164 and display interface 166 coupled to a display 156. The display 156 may be, for example, a TFT LCD (Thin-Film-Transistor Liquid Crystal Display) or an OLED (Organic Light Emitting Diode) display, or other appropriate display technology. The display interface 156 may comprise appropriate circuitry and configured for driving the display 156 to present graphical and other information to a user. The control interface 164 may receive commands from a user and convert them for submission to the processor 152. In addition, an external interface 168 may be provided in communication with processor 152, so as to enable near area communication of end-point device(s) 140 with other devices. External interface 168 may provide, for example, for wired communication in some implementations, or for wireless communication in other implementations, and multiple interfaces may also be used.

[0044] The memory 154 stores information within the end-point device(s) 140. The memory 154 can be implemented as one or more of a computer-readable medium or media, a volatile memory unit or units, or a non-volatile memory unit or units. Expansion memory may also be provided and connected to end-point device(s) 140 through an expansion interface (not shown), which may include, for example, a SIMM (Single In Line Memory Module) card interface. Such expansion memory may provide extra storage space for end-point device(s) 140 or may also store applications or other information therein. In some embodiments, expansion memory may include instructions to carry out or supplement the processes described above and may include secure information also. For example, expansion memory may be provided as a security module for end-point device(s) 140 and may be programmed with instructions that permit secure use of end-point device(s) 140. In addition, secure applications may be provided via the SIMM cards, along with additional information, such as placing identifying information on the SIMM card in a non-hackable manner.

[0045] The memory 154 may include, for example, flash memory and / or NVRAM memory. In one aspect, a computer program product is tangibly embodied in an information carrier. The computer program product contains instructions that, when executed, perform one or more methods, such as those described herein. The information carrier is a computer- or machine-readable medium, such as the memory 154, expansion memory, memory on processor 152, or a propagated signal that may be received, for example, over transceiver 160 or external interface 168.

[0046] In some embodiments, the user may use the end-point device(s) 140 to transmit and / or receive information or commands to and from the system 130 via the network 110. Any communication between the system 130 and the end-point device(s) 140 may be subject to an authentication protocol allowing the system 130 to maintain security by permitting only authenticated users (or processes) to access the protected resources of the system 130, which may include servers, databases, applications, and / or any of the components described herein. To this end, the system 130 may trigger an authentication subsystem that may require the user (or process) to provide authentication credentials to determine whether the user (or process) is eligible to access the protected resources. Once the authentication credentials are validated and the user (or process) is authenticated, the authentication subsystem may provide the user (or process) with permissioned access to the protected resources. Similarly, the end-point device(s) 140 may provide the system 130 (or other client devices) permissioned access to the protected resources of the end-point device(s) 140, which may include a GPS device, an image capturing component (e.g., camera), a microphone, and / or a speaker.

[0047] The end-point device(s) 140 may communicate with the system 130 through communication interface 158, which may include digital signal processing circuitry where necessary. Communication interface 158 may provide for communications under various modes or protocols, such as the Internet Protocol (IP) suite (commonly known as TCP / IP). Protocols in the IP suite define end-to-end data handling methods for everything from packetizing, addressing and routing, to receiving. Broken down into layers, the IP suite includes the link layer, containing communication methods for data that remains within a single network segment (link); the Internet layer, providing internetworking between independent networks; the transport layer, handling host-to-host communication; and the application layer, providing process-to-process data exchange for applications. Each layer contains a stack of protocols used for communications. In addition, the communication interface 158 may provide for communications under various telecommunications standards (2G, 3G, 4G, 5G, and / or the like) using their respective layered protocol stacks. These communications may occur through a transceiver 160, such as radio-frequency transceiver. In addition, short-range communication may occur, such as using a Bluetooth, Wi-Fi, or other such transceiver (not shown). In addition, GPS (Global Positioning System) receiver module 170 may provide additional navigation—and location-related wireless data to end-point device(s) 140, which may be used as appropriate by applications running thereon, and in some embodiments, one or more applications operating on the system 130.

[0048] The end-point device(s) 140 may also communicate audibly using audio codec 162, which may receive spoken information from a user and convert the spoken information to usable digital information. Audio codec 162 may likewise generate audible sound for a user, such as through a speaker, e.g., in a handset of end-point device(s) 140. Such sound may include sound from voice telephone calls, may include recorded sound (e.g., voice messages, music files, etc.) and may also include sound generated by one or more applications operating on the end-point device(s) 140, and in some embodiments, one or more applications operating on the system 130.

[0049] Various implementations of the distributed computing environment 100, including the system 130 and end-point device(s) 140, and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof.Example Functional System Architecture

[0050] FIG. 2 illustrates an example functional system architecture 200 of the system 130, in accordance with an embodiment of the invention. As shown in FIG. 2, the functional system architecture 200 may include a query receiver module 202, a root attribute mapper module 208, a query builder module 214, and a query executer module 216, each configured to interact with a layered relational database 220 comprising a plurality of semantic and structural layers, collectively identified as layers 212. The database 220 may comprise a multi-layered relationship database schema in which data is organized across multiple related layers 212. Accordingly, a user-generated query of database 220 may reference attributes which themselves are referential aliases of root-level identifiers.

[0051] In some embodiments, the query receiver module 202 is configured to receive a user-generated query 204 from a user. The query 204 may be expressed in a natural language format or as a structured query language (SQL) command. The user query 204 typically includes references to one or more attributes that correspond to semantic-level data fields, rather than the normalized or canonical attributes used internally within the database 220. The query 204 may then be stored in a temporary buffer 206 at the query receiver module 202.

[0052] Once received, the query 204 may processed by the root attribute mapper module 208, which may identify one or more attributes present in the query 204 and determines their corresponding root-level representations by inspecting the schema structure of the layered database 220. This mapping operation enables the system to infer which canonical database fields should be used in place of the derived, user-facing fields originally present in the query.

[0053] The query builder module 210 may be configured to programmatically rewrite the query 204 using the root-level attributes identified by the attribute mapper module 208. The rewritten query may then be executed against the layered database 220 using the query executer 216, and the results may returned to the user via an output interface of an end-point device 140.

[0054] The system architecture 200 further includes a layered relational database 220, which is a structured collection of interrelated tables organized into a plurality of n distinct layers 212. Each layer 212 may represent a level of data abstraction, allowing the system to distinguish between root-level identifiers and semantic representations. For example, each layer 212 may comprise a root layer 212a, a semantic layer 212b, an application layer 212c, and / or the like.

[0055] A root layer 212a may comprise one or more core entity tables that define canonical identifiers for data records. Said tables may contain primary keys and normalized foreign keys that form the basis for all inter-table relationships (e.g., employee_id, customer_id, department_id, and / or the like). As such, a root layer 212a may comprise a source of identity for all entities and may used by the query builder module 210 to construct referentially complete, executable queries.

[0056] A semantic layer 212b may comprise reference or dimension tables that store user-facing labels and / or descriptors mapped to the root identifiers in one or more root layers 212a. For example, a reference table in a semantic layer 212b may include both department_id (a primary key from root layer 212a) and department_name fields, where department_name is an attribute more likely to be referenced in a user-generated query 204. As such, a semantic layer 212b may enables the system to resolve queries that reference derived or display-oriented attributes by linking them to their canonical counterparts.

[0057] An application layer 212c (i.e., a derived layer), may comprise materialized views, logical constructs, and / or denormalized summary tables that combine data from root layers 212a and semantic layers 212b for ease of access and improved performance in application contexts (e.g., department_information tables or the like).

[0058] Although specific embodiments of the system architecture 200 have been described herein, it should be understood that various modifications, substitutions, and alterations may be made without departing from the scope of the invention. The embodiments described herein are illustrative and not limiting. Features described in relation to one embodiment may be combined with features of another embodiment where appropriate.Example Method for Querying Layered Databases

[0059] FIG. 3 illustrates a process flow 300 for querying layered databases, in accordance with an embodiment of the invention. As shown in block 302, the process flow includes using the query receiver module to receive a query from an end-point device. In some embodiments, the query may be a user-generated query of a particular database and may be received via an application programming interface (API) endpoint and / or a user interface of the end-point device. Thus, the query receiver module may be configured in a server-side programming language such as Python or the like in order to receive the query as an input. The user-generated query may be a natural language query or a structured query (e.g., a Structured Query Language (SQL) query), and may comprise a plurality of attributes. In some embodiments, block 302 further comprises storing the received query in a temporary buffer at the query receiver module.

[0060] The query receiver module may then attempt to validate the user-generated query based on querying a data table (such as a configuration file) for a stored smart query associated with the user-generated query. Based on identifying said stored smart query, thereby validating that the user-generated query matches a stored smart query, the query receiver module may then execute the stored smart query and return a result to the end-point device. If the query receiver module fails to validate the user-generated query by failing to identify an associated stored smart query, the process flow may then continue to block 304.

[0061] As shown in block 304, the process flow includes executing the root mapper module based on determining that the user-generated query is not validated. The root mapper module may be configured to apply a natural language processing model (e.g., a semantic parser model trained to map natural language terms to structured queries) and / or a rule-based parser (e.g., an SQL parser function) to extract the plurality of attributes from the user-generated query. In some embodiments, the plurality of attributes may comprise one or more selected attributes (e.g., specific data types and / or variables), as well as one or more location attributes (e.g., specific layers of the database).

[0062] As shown in block 306, the process flow includes using the root mapper module to recursively loop (i.e., iterate) through n layers of the database to identify a root attribute and a base layer data object associated with each attribute of the user-generated query. In some embodiments, the root mapper module may be configured to access schema metadata of the database, the schema metadata comprising a schema model which defines the relational structure of the data within the database. At each database layer, the root mapper module may identify each attribute from the user-generated query in the database layer, and may query the schema metadata to determine whether each particular attribute is a foreign key (i.e., is a reference to an attribute in another layer) or is a primary key (i.e., originates in the layer). For each attribute, when the root mapper module identifies a layer where the attribute is a primary key, the root mapper module may update a data table (e.g., a configuration file) based on the identified primary key attribute (i.e., root attribute) and an associated base layer data object.

[0063] As shown in block 308, the process flow includes using the query builder module to replace one or more attributes of the user-generated query with the one or more identified root attributes, thereby generating a smart query. For example, the query builder module may, for each attribute in the user-generated query, look up the attribute in the updated data table to identify an associated root attribute. In some embodiments, the query builder module may generate the smart query by explicitly replacing each attribute value with a subqueries or primary key match to the root attribute. Additionally or alternatively, the query builder module may apply one or more join clauses to the user-generated query to resolve foreign key relationships, thereby generating the smart query.

[0064] As shown in block 310, the process flow includes executing the smart query. In some embodiments, executing the smart query results in bypassing one or more layers of the database to access a base layer data object associated with a root attribute, rather than a higher-level data object associated with a foreign key attribute. This approach is particularly advantageous when one or more of the foreign key attributes are associated with layers that are data-locked, such that the original user-generated query would have been prevented from accessing said layers (e.g., in a situation in which a plurality of users are collaborating in a particular database, such that one or more layers are “checked out” and available only to a particular user). In some embodiments, block 310 further comprises returning a result of the smart query to the end-point device

[0065] Embodiments of the present disclosure are described above with reference to block diagrams and flowchart illustrations. Thus, it should be understood that each block of the block diagrams and flowchart illustrations may be implemented in the form of a computer program product; an entirely hardware embodiment; an entirely firmware embodiment; a combination of hardware, computer program products, and / or firmware; and / or apparatuses, systems, computing devices, computing entities, and / or the like carrying out instructions, operations, steps, and similar words used interchangeably (e.g., the executable instructions, instructions for execution, program code, and / or the like) on a computer-readable storage medium for execution. For example, retrieval, loading, and execution of code may be performed sequentially such that one instruction is retrieved, loaded, and executed at a time. In some exemplary embodiments, retrieval, loading, and / or execution may be performed in parallel such that multiple instructions are retrieved, loaded, and / or executed together. Thus, such embodiments can produce specifically-configured machines performing the steps or operations specified in the block diagrams and flowchart illustrations. Accordingly, the block diagrams and flowchart illustrations support various combinations of embodiments for performing the specified instructions, operations, or steps.

[0066] Many modifications and other embodiments of the present disclosure set forth herein will come to mind to one skilled in the art to which these embodiments pertain having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Although the figures only show certain components of the methods and systems described herein, it is understood that various other components may also be part of the disclosures herein. In addition, the methods described above may include fewer steps in some cases, while in other cases the methods may include additional steps. The steps of the methods and modifications to the steps of the methods described above, in some cases, may be performed in any order and in any combination.

[0067] Therefore, it is to be understood that the present disclosure is not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims

1. A system for querying layered databases, the system comprising:a root mapper module, wherein the root mapper module is configured to:receive a user-generated query, wherein the user-generated query comprises a plurality of attributes;for each attribute of the plurality of attributes, recursively iterate through a plurality of layers of a database, wherein recursively iterating comprises accessing schema metadata of the database, the schema metadata comprising a schema model which defines a relational structure of data within the database, to identify a root attribute and a base layer data object associated with each attribute, wherein identifying the root attribute comprises querying the schema metadata to determine whether each attribute is a foreign key referencing an attribute in another layer or is a primary key originating in a layer; andupdate a data table based on the root attribute and the base layer data object associated with each attribute; anda query execution module, wherein the query execution module is configured to execute a smart query, wherein the smart query is configured to bypass one or more of the plurality of the layers of the database based on the updated data table.

2. The system of claim 1, further comprising a query receiver module, wherein the query receiver module is configured to:receive the user-generated query from an end-point device;attempt to validate the user-generated query; andbased on failing to validate the user-generated query, execute the root mapper module.

3. The system of claim 2, wherein the query receiver module is further configured to:based on validating the user-generated query, execute a stored smart query associated with the user-generated query; andreturn a result of the stored smart query to a user.

4. The system of claim 1, further comprising a query builder module, wherein the query module is configured to:identify each attribute of the plurality of attributes of the user-generated query;for each attribute, identify an associated root attribute by querying the updated data table; andreplace each attribute of the user-generated query with the associated root attribute, generating the smart query.

5. The system of claim 2, wherein attempting to validate the user-generated query comprises identifying a stored smart query associated with the user-generated query.

6. The system of claim 1, wherein the query execution module is further configured to return an output of the smart query to an end-point device.

7. The system of claim 1, wherein the user-generated query comprises a Structured Query Language (SQL) query.

8. The system of claim 1, wherein one or more of the bypassed layers of the database comprises a locked layer.

9. A computer program product for querying layered databases, the computer program product comprising a non-transitory computer-readable medium comprising code causing an apparatus to:using a root mapper module, receive a user-generated query, wherein the user-generated query comprises a plurality of attributes;using the root mapper module, for each attribute of the plurality of attributes, recursively iterate through a plurality of layers of a database, wherein recursively iterating comprises accessing schema metadata of the database, the schema metadata comprising a schema model which defines a relational structure of data within the database, to identify a root attribute and a base layer data object associated with each attribute, wherein identifying the root attribute comprises querying the schema metadata to determine whether each attribute is a foreign key referencing an attribute in another layer or is a primary key originating in a layer;using the root mapper module, update a data table based on the root attribute and the base layer data object associated with each attribute; andusing a query execution module, execute a smart query, wherein the smart query is configured to bypass one or more of the plurality of the layers of the database based on the updated data table.

10. The computer program product of claim 9, the non-transitory computer-readable medium further comprising code causing the apparatus to:using a query receiver module, receive the user-generated query from an end-point device;using the query receiver module, attempt to validate the user-generated query; andusing the query receiver module, based on failing to validate the user-generated query, execute the root mapper module.

11. The computer program product of claim 10, the non-transitory computer-readable medium further comprising code causing the apparatus to:using the query receiver module, based on validating the user-generated query, execute a stored smart query associated with the user-generated query; andusing the query receiver module, return a result of the stored smart query to a user.

12. The computer program product of claim 9, the non-transitory computer-readable medium further comprising code causing the apparatus to:using a query builder module, identify each attribute of the plurality of attributes of the user-generated query;using the query builder module, for each attribute, identify an associated root attribute by querying the updated data table; andusing the query builder module, replace each attribute of the user-generated query with the associated root attribute, generating the smart query.

13. The computer program product of claim 10, wherein attempting to validate the user-generated query comprises identifying a stored smart query associated with the user-generated query.

14. The computer program product of claim 9, the non-transitory computer-readable medium further comprising code causing the apparatus to:using the query execution module, return an output of the smart query to an end-point device.

15. The computer program product of claim 9, wherein the user-generated query comprises a Structured Query Language (SQL) query.

16. The computer program product of claim 9, wherein one or more of the bypassed layers of the database comprises a locked layer.

17. A computer-implemented method for querying layered databases, the method comprising:using a root mapper module, receiving a user-generated query, wherein the user-generated query comprises a plurality of attributes;using the root mapper module, for each attribute of the plurality of attributes, recursively iterating through a plurality of layers of a database, wherein recursively iterating comprises accessing schema metadata of the database, the schema metadata comprising a schema model which defines a relational structure of data within the database, to identify a root attribute and a base layer data object associated with each attribute, wherein identifying the root attribute comprises querying the schema metadata to determine whether each attribute is a foreign key referencing an attribute in another layer or is a primary key originating in a layer;using the root mapper module, updating a data table based on the root attribute and the base layer data object associated with each attribute; andusing a query execution module, executing a smart query, wherein the smart query is configured to bypass one or more of the plurality of the layers of the database based on the updated data table.

18. The method of claim 17, further comprising, using a query receiver module,receiving the user-generated query from an end-point device;attempting to validate the user-generated query;based on failing to validate the user-generated query, executing the root mapper module;based on validating the user-generated query, executing a stored smart query associated with the user-generated query; andreturning a result of the stored smart query to a user.

19. The method of claim 17, further comprising, using a query builder module,identifying each attribute of the plurality of attributes of the user-generated query;for each attribute, identifying an associated root attribute by querying the updated data table; andreplacing each attribute of the user-generated query with the associated root attribute, generating the smart query.

20. The method of claim 17, wherein one or more of the bypassed layers of the database comprises a locked layer.

Citation Information

Patent Citations

  • Adapting a relational query to accommodate hierarchical data

    US10282447B2

  • Platform management of integrated access of public and privately-accessible datasets utilizing federated query generation and query schema rewriting optimization

    US10438013B2

  • High performance real-time relational database system and methods for using same

    US10740327B2

  • Querying over external tables in database systems

    US11030191B2

  • Dimension context propagation techniques for optimizing SQL query plans

    US11036735B2