A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
One or more implementations relate generally to alternative change processes for changes to data objects.
The subject matter discussed in the background section should not be assumed to be prior art merely as a result of its mention in the background section. Similarly, a problem mentioned in the background section or associated with the subject matter of the background section should not be assumed to have been previously recognized in the prior art. The subject matter in the background section merely represents different approaches, which in and of themselves may also be inventions.
In computer science, an object is a location in memory having a value and referenced by an identifier. Since the introduction of object-oriented programming, an object can refer to a particular instance of a class, and can include multiple fields that have their corresponding values. Relational database management systems may track historical changes to data objects to provide additional information to system users.
For example, a salesperson who stores sales opportunity information using a database management system may benefit from accessing the history of the sales opportunity information for a prospective customer, such as changes to the sales opportunity amounts and the sales opportunity scheduled sales dates during the last month. The salesperson contacted a sales lead on January 7th, established a potential sale amount of $1,000 scheduled for the beginning of February, and stored this information using the database management system. On January 14th, the sales lead emailed the salesperson to increase the potential sales amount to $2,000, and the salesperson stored this information. On January 21st, the sales lead called the salesperson to postpone the scheduled sales date to the beginning of March, and the salesperson stored this information. On January 28th, the salesperson called the sales lead, negotiated a revised potential sales amount of $3,000 scheduled for the beginning of April, and stored this information. On January 30th, the salesperson accesses the database management system to determine what were the potential sales amount and the scheduled sales date for this sales opportunity on January 25th when the salesperson had lunch with a friend of the sales lead. The database management system may store the history of changes to data objects by using a name-value pair, such that the database management system may respond to the salesperson's query by retrieving six different name-value pairs stored in data objects before being able to respond that on January 25th the potential sales amount was $2,000 and the scheduled sales date was the beginning of March for this sales opportunity.
In accordance with embodiments, there are provided systems and methods for alternative change processes for changes to data objects. A change to a data object is recorded, wherein the change is submitted to a first change process. For example, a system identifies a change in ownership of an opportunity object that is scheduled for implementation by a structured query language process, in contrast to user edits of the opportunity object, which the system would handle by the standard java process. The first change process is disabled. For example, the system sets a trigger to disable the alternative change process, which is written in customized code that is less efficient than the standard code for handling most changes to data objects. A second change process is asynchronously executed to process the change to the data object. For example, the system executes standard code to handle the change to the data object on an asynchronous basis.
Continuing this example, the system may execute standard code to store a history object that is identified as the Acme Corporation sales opportunity, includes the name “amount,” and includes the value of $1,000 that began on January 7th and ended on January 14th. Further to this example, the system may output a history object that is identified as the Acme Corporation sales opportunity and specifies the value $2,000 in response to a query that specifies the Acme Corporation sales opportunity, the name “amount,” and the date of January 25th, wherein the system needs to retrieves only one history object to respond to this query. In contrast, prior art data management systems may retrieve six different name-value pairs stored in six different data objects before being able to respond to the same query. Accordingly, systems and methods are provided for alternative change processes for changes to data objects.
While one or more implementations and techniques are described with reference to an embodiment in which batch processing of data records in an on-demand system is implemented in a system having an application server providing a front end for an on-demand database service capable of supporting multiple tenants, the one or more implementations and techniques are not limited to multi-tenant databases nor deployment on application servers. Embodiments may be practiced using other database architectures, i.e., ORACLE®, DB2® by IBM and the like without departing from the scope of the embodiments claimed.
Any of the above embodiments may be used alone or together with one another in any combination. The one or more implementations encompassed within this specification may also include embodiments that are only partially mentioned or alluded to or are not mentioned or alluded to at all in this brief summary or in the abstract. Although various embodiments may have been motivated by various deficiencies with the prior art, which may be discussed or alluded to in one or more places in the specification, the embodiments do not necessarily address any of these deficiencies. In other words, different embodiments may address different deficiencies that may be discussed in the specification. Some embodiments may only partially address some deficiencies or just one deficiency that may be discussed in the specification, and some embodiments may not address any of these deficiencies.
In the following drawings like reference numbers are used to refer to like elements. Although the following figures depict various examples, the one or more implementations are not limited to the examples depicted in the figures.
General Overview
Systems and methods are provided for alternative change processes for changes to data objects.
As used herein, the term multi-tenant database system refers to those systems in which various elements of hardware and software of the database system may be shared by one or more customers. For example, a given application server may simultaneously process requests for a great number of customers, and a given database table may store rows for a potentially much greater number of customers. As used herein, the term query plan refers to a set of steps used to access information in a database system.
Next, mechanisms and methods for alternative change processes for changes to data objects will be described with reference to example embodiments.
The following detailed description will first describe a method for alternative change processes for changes to data objects.
Next, an example name-value pair table and an example history object table for alternative change processes for changes to data objects are described.
In block 102, a data object is identified as scheduled for an alternative change process. For example and without limitation, this can include a database system identifying a change in ownership of an opportunity object that is scheduled for implementation by a structured query language process, in contrast to user edits of the opportunity object, which the database management system would handle by the standard java process. Some database management systems process a few unusual types of changes to data objects through alternative change processes, which are written in customized code that is less efficient than the standard code that processes most changes to data objects. When the database system identifies a change to data objects that is scheduled for an alternative change process, the database system saves the corresponding data objects to a staging table and sets a trigger to request the standard code to process the change instead.
In block 104, an alternative change process is disabled, wherein storing a history object optionally includes asynchronously storing the history object. By way of example and without limitation, this can include the database system setting a trigger to disable the alternative change process, which is written in customized code that is less efficient than the standard code for handling most changes to data objects. Therefore, the standard code for handling most changes to data objects can subsequently process the data object on an asynchronous basis, which only slightly delays the availability of the history of the corresponding change. Rerouting changes to data objects which would have been processed by a customized alternative change process to be handled by the standard change process insures that all changes to data objects are processed by the same code that creates historical objects for data object changes.
In block 106, a first data object and a second data object are optionally retrieved, wherein the first data object includes an identifier, a field name, a first value, and a first date, and wherein the second data object includes the identifier, the field name, a second value, and a second date. In embodiments, this can include the database system retrieving data objects that are identified as the Acme Corporation sales opportunity, include the name “amount,” include the value of $1,000 corresponding to the timestamp for January 7th, include the value of $2,000 corresponding to the timestamp for January 14th, and include the value of $3,000 corresponding to the timestamp for January 28th.
In block 108, a third data object and a fourth data object are optionally retrieved, wherein the third data object includes an identifier, another field name, a third value, and a third date, and wherein the fourth data object includes the identifier, the other field name, a fourth value, and a fourth date. For example and without limitation, this can include the database system retrieving data objects that are identified as the Acme Corporation sales opportunity, include the value of February corresponding to the timestamp for January 7th, include the value of March corresponding to the timestamp for January 21st, and include the value of April corresponding to the timestamp for January 28th. The database system may retrieve multiple data objects in chunks, such as a chunk of 250 data objects out of all of the data objects that correspond to the date of January 7th. If the database system detects an error in retrieving blocks of data objects, the database system may retrieve data objects one by one, and/or re-retrieve only the data objects that resulted in a retrieval error. When a chunk of data objects are being retrieved, the database system locks the source records to prevent concurrent modifications. The database system validates information in the data objects before storing the information as history objects. For example, the database system insures that the timestamp for the first value of amount precedes the timestamp for the second value of amount.
In block 110, a history object is optionally stored, wherein the history object includes a identifier, a field name, a first value, a first date, a second date, and possible a preceding value corresponding to the first value. By way of example and without limitation, this can include the database system storing a first history object that is identified as the Acme Corporation sales opportunity, includes the name “amount,” and includes the value of $1,000 that begins on January 7th and ends at a time on January 14th. The database system may also store a second history object that is identified as the Acme Corporation sales opportunity, includes the name “amount,” includes the value of $2,000 that begins at a time on January 14th and ends at a time on January 21st, and includes the preceding value of $1,000. The database system may also store a third history object that is identified as the Acme Corporation sales opportunity, includes the name “amount,” includes the value of $2,000 that begins at a time on January 21st and ends at a time on January 28th, and includes the preceding value of $2,000. The database system may also store a fourth history object that is identified as the Acme Corporation sales opportunity, includes the name “amount,” includes the value of $3,000 that begins at a time on January 28th and continues to the current date, and includes the preceding value of $2,000. The database system store all of the fields in the same history object whether or not all of the fields changed, as long as at least one field changed.
In block 112, a history object is optionally stored, wherein the history object includes the identifier, another field name, a third value, a third date, a fourth date, and possibly another preceding value corresponding to the third value. In embodiments, this can include the database system storing into the first history object that is identified as the Acme Corporation sales opportunity, the name “schedule,” and the value of February that begins on January 7th and ends at a time on January 14th. The database system may also store into the second history object that is identified as the Acme Corporation sales opportunity, the name “schedule,” and the value of February that begins at a time on January 14th and ends at a time on January 21st, and the preceding value of February. The database system may also store into the third history object that is identified as the Acme Corporation sales opportunity, the name “schedule,” and the value of March that begins at a time on January 21st and ends at a time on January 28th, and the preceding value of February. The database system may also store into the fourth history object that is identified as the Acme Corporation sales opportunity, the name “schedule,” and the value of April that begins at a time on January 28th and continues to the current date, and the preceding value of March. The database system may store multiple history objects in chunks, such as a chuck of 250 history objects out of all of the history objects that correspond to the date of January 7th. If the database system detects an error in storing blocks of history objects, the database system may store history objects one by one, and/or re-store only the data change records that resulted in a store error. When a chunk of history objects are being stored, the database system locks the target records to prevent concurrent modifications.
In block 114, a history object is optionally output in response to a query which specifies an identifier, a field name, and a query date within a range of a first date and a second date. For example and without limitation, this can include the database system outputting the third history object that is identified as the Acme Corporation sales opportunity and specifies the value $2,000 in response to a query that specifies the Acme Corporation sales opportunity, the name “amount,” and the date of January 25th. The third history object also includes other information for the Acme Corporation sales opportunity on January 25th, such as the value of March for the name “schedule.” The database system needs to retrieves only one history object to respond to this query. In contrast, prior art data management systems may retrieve six different name-value pairs stored in six different data objects before being able to respond to the same query.
In block 116, a history object is optionally output in response to a query which specifies an identifier, another field name, and a query date within a range of a third date and a fourth date. By way of example and without limitation, this can include the database system outputting the third history object that is identified as the Acme Corporation sales opportunity and specifies the value March in response to a query that specifies the Acme Corporation sales opportunity, the name “schedule,” and the date of January 25th. The third history object also includes other information for the Acme Corporation sales opportunity on January 25th, such as the value of $2,000 for the name “amount.” The database system needs to retrieves only one history object to respond to this query. In contrast, prior art data management systems may retrieve six different name-value pairs stored in data objects before being able to respond to the same query.
Accordingly, systems and methods are provided for alternative change processes for changes to data objects. The method 100 may be repeated as desired. Although this disclosure describes the blocks 102-116 executing in a particular order, the blocks 102-116 may be executed in a different order.
A prior art database management system may create the name-value pair table 202 based on processing a name-value pair for each change to a data object. For example, when a user creates the Acme Corporation opportunity data object on January 7th and assigns the value of $1,000 to the amount field and assigns the value of February to the schedule field, the prior art system creates the first two corresponding rows in the name-value pair table 202. When the user changes the value for the amount field from $1,000 to $2,000 on January 14th, the prior art system creates the third corresponding row in the name-value pair table 202. When the user changes the value for the schedule field from February to March on January 21st, the prior art system creates the fourth corresponding row in the name-value pair table 202. When the user changes the value for the amount field from $2,000 to $3,000 and changes the value for the schedule field from March to April on January 28th, the prior art system creates the fifth and sixth corresponding row in the name-value pair table 202.
Although the prior art system uses a simple process to create the name-value pair table 202, the process of querying the name-value pair table 202 may be very complex. For example, on January 30th, the salesperson accesses the prior art system to determine what were the potential sales amount and the scheduled sales date for the Acme Corporation opportunity on January 25th when the salesperson had lunch with a friend of the sales lead. First, the prior art system retrieves the first row because the first row stores the value $1,000 for the amount on January 7th, and the prior art system cannot yet determine whether or not the value of $1,000 will still be current on the queried date of January 25th. Then the prior art system retrieves the second row because the second row stores the value February for the schedule on January 7th, and the prior art system cannot yet determine whether or not the value of February will still be current on the queried date of January 25th. Next, the prior art system retrieves the third row because the third row stores the value $2,000 for the amount on January 14th, and discards the value $1,000 for the amount on January 7th, but the prior art system cannot yet determine whether or not the value of $2,000 will still be current on the queried date of January 25th. Then the prior art system retrieves the fourth row because the fourth row stores the value March for the schedule on January 21st, and discards the value February for the schedule on January 7th, but the prior art system cannot yet determine whether or not the value of March will still be current on the queried date of January 25th. Then the prior art system retrieves the fifth row because the fifth row stores the value $3,000 for the amount on January 28th, which finally enables the prior art system to determine that the previous value of $2,000 was the current value for amount on the queried date of January 25th. Finally, the prior art system retrieves the sixth row because the sixth row stores the value April for the schedule on January 28th, which enables the prior art system to determine that the preceding value of March was the current value for schedule on the queried date of January 25th. The prior art system had to retrieve and temporarily store six different name-value pair stored in six different data objects to respond to a simple query because of the inefficient process that is required to query the name-value table 202. Although this simple example describes a very complex querying and retrieval process required for only two fields, the process for querying and retrieving data objects for larger numbers of fields, such as are required by actual users of database management systems, is even more complex, and therefore prone to error.
In contrast, the history object table 204 enables an efficient querying process. Although the history object table 204 in
When the user changes the value for the amount field from $1,000 to $2,000 on January 14th, the database system creates the second corresponding row in the history object table 204. The second row includes $1,000 and February for the “value from” columns to indicate the preceding values for the amount field and for the schedule field, and $1,000 and February for the “value to” columns to indicate the current values for the amount field and the schedule field. The second row also includes January 14th for a “valid from” column, which indicates the date change for the corresponding fields, and initially includes “current” for the “valid to” column, which indicates on and after January 14th that the information in the second row is the current information for the corresponding Acme Corporation opportunity object. The database system also copies the date change of January 14th over “current” in the “valid to” column in the first row to indicate that the information in the first row is no longer current. Although the simplified example of the history object table 204 does not include times with the depicted dates, the database system stores change times with the “valid to” date in the first row and the “valid from” date in the second row so that no overlap in time exists for information corresponding to January 14th.
When the user changes the value for the schedule field from February to March on January 21st, the database system creates the third corresponding row in the history object table 204. The third row includes $2,000 and February for the “value from” columns to indicate the preceding values for the amount field and for the schedule field, and $2,000 and March for the “value to” columns to indicate the current values for the amount field and the schedule field. The third row also includes January 21st for a “valid from” column, which indicates the date change for the corresponding fields, and initially includes “current” for the “valid to” column, which indicates that on January 21st that the information in the third row was the current information for the corresponding Acme Corporation opportunity object. The database system also copies the date change of January 21st over “current” in the “valid to” column in the second row to indicate that the information in the second row is no longer current. Although the simplified example of the history object table 204 does not include times with the depicted dates, the database system stores change times with the “valid to” date in the second row and the “valid from” date in the third row so that no overlap in time exists for information corresponding to January 21st.
When the user changes the value for the amount field from $2,000 to $3,000 and changes the value for the schedule field from March to April on January 28th, the database system creates the fourth corresponding row in history object table 204. The fourth row includes $2,000 and March for the “value from” columns to indicate the preceding values for the amount field and for the schedule field, and $3,000 and April for the “value to” columns to indicate the current values for the amount field and the schedule field. The fourth row also includes January 28th for a “valid from” column, which indicates the date change for the corresponding fields, and includes “current” for the “valid to” column, which indicates on January 28th that the information in the fourth row is the current information for the corresponding Acme Corporation opportunity object. The database system also copies the date change of January 28th over “current” in the “valid to” column in the third row to indicate that the information in the third row is no longer current. Although the simplified example of the history object table 204 does not include times with the depicted dates, the database system stores change times with the “valid to” date in the third row and the “valid from” date in the fourth row so that no overlap in time exists for information corresponding to January 28th.
The process of querying the history object table 202 is simple. For example, on January 30th, the salesperson accesses the database system to determine what were the potential sales amount and the scheduled sales date for the Acme Corporation opportunity on January 25th when the salesperson had lunch with a friend of the sales lead. The database system may quickly access the “valid from” and “valid to” dates as a primary key or a pre-retrieved index to determine that the queried date will not be satisfied by the first two rows, but the database system does not have to retrieve, much less temporarily store the corresponding information in the first two rows. When the database system accesses the “valid from” and “valid to” dates corresponding to the third row, the database system quickly determines that the queried date will be satisfied by the third row, so the database system has to retrieve the corresponding information in only one row, the third row. The process for querying and retrieving data objects from the history object table 204 is much simpler and less prone to error than the prior art querying and retrieving process described above.
System Overview
Environment 310 is an environment in which an on-demand database service exists. User system 312 may be any machine or system that is used by a user to access a database user system. For example, any of user systems 312 can be a handheld computing device, a mobile phone, a laptop computer, a work station, and/or a network of computing devices. As illustrated in
An on-demand database service, such as system 316, is a database system that is made available to outside users that do not need to necessarily be concerned with building and/or maintaining the database system, but instead may be available for their use when the users need the database system (e.g., on the demand of the users). Some on-demand database services may store information from one or more tenants stored into tables of a common database image to form a multi-tenant database system (MTS). Accordingly, “on-demand database service 316” and “system 316” will be used interchangeably herein. A database image may include one or more database objects. A relational database management system (RDMS) or the equivalent may execute storage and retrieval of information against the database object(s). Application platform 318 may be a framework that allows the applications of system 316 to run, such as the hardware and/or software, e.g., the operating system. In an embodiment, on-demand database service 316 may include an application platform 318 that enables creation, managing and executing one or more applications developed by the provider of the on-demand database service, users accessing the on-demand database service via user systems 312, or third party application developers accessing the on-demand database service via user systems 312.
The users of user systems 312 may differ in their respective capacities, and the capacity of a particular user system 312 might be entirely determined by permissions (permission levels) for the current user. For example, where a salesperson is using a particular user system 312 to interact with system 316, that user system has the capacities allotted to that salesperson. However, while an administrator is using that user system to interact with system 316, that user system has the capacities allotted to that administrator. In systems with a hierarchical role model, users at one permission level may have access to applications, data, and database information accessible by a lower permission level user, but may not have access to certain applications, database information, and data accessible by a user at a higher permission level. Thus, different users will have different capabilities with regard to accessing and modifying application and database information, depending on a user's security or permission level.
Network 314 is any network or combination of networks of devices that communicate with one another. For example, network 314 can be any one or any combination of a LAN (local area network), WAN (wide area network), telephone network, wireless network, point-to-point network, star network, token ring network, hub network, or other appropriate configuration. As the most common type of computer network in current use is a TCP/IP (Transfer Control Protocol and Internet Protocol) network, such as the global internetwork of networks often referred to as the “Internet” with a capital “I,” that network will be used in many of the examples herein. However, it should be understood that the networks that the one or more implementations might use are not so limited, although TCP/IP is a frequently implemented protocol.
User systems 312 might communicate with system 316 using TCP/IP and, at a higher network level, use other common Internet protocols to communicate, such as HTTP, FTP, AFS, WAP, etc. In an example where HTTP is used, user system 312 might include an HTTP client commonly referred to as a “browser” for sending and receiving HTTP messages to and from an HTTP server at system 316. Such an HTTP server might be implemented as the sole network interface between system 316 and network 314, but other techniques might be used as well or instead. In some implementations, the interface between system 316 and network 314 includes load sharing functionality, such as round-robin HTTP request distributors to balance loads and distribute incoming HTTP requests evenly over a plurality of servers. At least as for the users that are accessing that server, each of the plurality of servers has access to the MTS' data; however, other alternative configurations may be used instead.
In one embodiment, system 316, shown in
One arrangement for elements of system 316 is shown in
Several elements in the system shown in
According to one embodiment, each user system 312 and all of its components are operator configurable using applications, such as a browser, including computer code run using a central processing unit such as an Intel Pentium® processor or the like. Similarly, system 316 (and additional instances of an MTS, where more than one is present) and all of their components might be operator configurable using application(s) including computer code to run using a central processing unit such as processor system 317, which may include an Intel Pentium® processor or the like, and/or multiple processor units. A computer program product embodiment includes a machine-readable storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the embodiments described herein.
Computer code for operating and configuring system 316 to intercommunicate and to process webpages, applications and other data and media content as described herein are preferably downloaded and stored on a hard disk, but the entire program code, or portions thereof, may also be stored in any other volatile or non-volatile memory medium or device as is well known, such as a ROM or RAM, or provided on any media capable of storing program code, such as any type of rotating media including floppy disks, optical discs, digital versatile disk (DVD), compact disk (CD), microdrive, and magneto-optical disks, and magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data. Additionally, the entire program code, or portions thereof, may be transmitted and downloaded from a software source over a transmission medium, e.g., over the Internet, or from another server, as is well known, or transmitted over any other conventional network connection as is well known (e.g., extranet, VPN, LAN, etc.) using any communication medium and protocols (e.g., TCP/IP, HTTP, HTTPS, Ethernet, etc.) as are well known.
It will also be appreciated that computer code for implementing embodiments can be implemented in any programming language that can be executed on a client system and/or server or server system such as, for example, C, C++, HTML, any other markup language, Java™, JavaScript, ActiveX, any other scripting language, such as VBScript, and many other programming languages as are well known may be used. (Java™ is a trademark of Sun Microsystems, Inc.).
According to one embodiment, each system 316 is configured to provide webpages, forms, applications, data and media content to user (client) systems 312 to support the access by user systems 312 as tenants of system 316. As such, system 316 provides security mechanisms to keep each tenant's data separate unless the data is shared. If more than one MTS is used, they may be located in close proximity to one another (e.g., in a server farm located in a single building or campus), or they may be distributed at locations remote from one another (e.g., one or more servers located in city A and one or more servers located in city B). As used herein, each MTS could include one or more logically and/or physically connected servers distributed locally or across one or more geographic locations. Additionally, the term “server” is meant to include a computer system, including processing hardware and process space(s), and an associated storage system and database application (e.g., OODBMS or RDBMS) as is well known in the art. It should also be understood that “server system” and “server” are often used interchangeably herein. Similarly, the database object described herein can be implemented as single databases, a distributed database, a collection of distributed databases, a database with redundant online or offline backups or other redundancies, etc., and might include a distributed database or storage network and associated processing intelligence.
User system 312, network 314, system 316, tenant data storage 322, and system data storage 324 were discussed above in
Application platform 318 includes an application setup mechanism 438 that supports application developers' creation and management of applications, which may be saved as metadata into tenant data storage 322 by save routines 436 for execution by subscribers as one or more tenant process spaces 404 managed by tenant management process 410 for example. Invocations to such applications may be coded using PL/SOQL 34 that provides a programming language style interface extension to API 432. A detailed description of some PL/SOQL language embodiments is discussed in commonly owned U.S. Pat. No. 7,730,478 entitled, METHOD AND SYSTEM FOR ALLOWING ACCESS TO DEVELOPED APPLICATIONS VIA A MULTI-TENANT ON-DEMAND DATABASE SERVICE, by Craig Weissman, filed Sep. 21, 2007, which is incorporated in its entirety herein for all purposes. Invocations to applications may be detected by one or more system processes, which manages retrieving application metadata 416 for the subscriber making the invocation and executing the metadata as an application in a virtual machine.
Each application server 400 may be communicably coupled to database systems, e.g., having access to system data 325 and tenant data 323, via a different network connection. For example, one application server 4001 might be coupled via the network 314 (e.g., the Internet), another application server 400N-1 might be coupled via a direct network link, and another application server 400N might be coupled by yet a different network connection. Transfer Control Protocol and Internet Protocol (TCP/IP) are typical protocols for communicating between application servers 400 and the database system. However, it will be apparent to one skilled in the art that other transport protocols may be used to optimize the system depending on the network interconnect used.
In certain embodiments, each application server 400 is configured to handle requests for any user associated with any organization that is a tenant. Because it is desirable to be able to add and remove application servers from the server pool at any time for any reason, there is preferably no server affinity for a user and/or organization to a specific application server 400. In one embodiment, therefore, an interface system implementing a load balancing function (e.g., an F5 Big-IP load balancer) is communicably coupled between the application servers 400 and the user systems 312 to distribute requests to the application servers 400. In one embodiment, the load balancer uses a least connections algorithm to route user requests to the application servers 400. Other examples of load balancing algorithms, such as round robin and observed response time, also can be used. For example, in certain embodiments, three consecutive requests from the same user could hit three different application servers 400, and three requests from different users could hit the same application server 400. In this manner, system 316 is multi-tenant, wherein system 316 handles storage of, and access to, different objects, data and applications across disparate users and organizations.
As an example of storage, one tenant might be a company that employs a sales force where each salesperson uses system 316 to manage their sales process. Thus, a user might maintain contact data, leads data, customer follow-up data, performance data, goals and progress data, etc., all applicable to that user's personal sales process (e.g., in tenant data storage 322). In an example of a MTS arrangement, since all of the data and the applications to access, view, modify, report, transmit, calculate, etc., can be maintained and accessed by a user system having nothing more than network access, the user can manage his or her sales efforts and cycles from any of many different user systems. For example, if a salesperson is visiting a customer and the customer has Internet access in their lobby, the salesperson can obtain critical updates as to that customer while waiting for the customer to arrive in the lobby.
While each user's data might be separate from other users' data regardless of the employers of each user, some data might be organization-wide data shared or accessible by a plurality of users or all of the users for a given organization that is a tenant. Thus, there might be some data structures managed by system 316 that are allocated at the tenant level while other data structures might be managed at the user level. Because an MTS might support multiple tenants including possible competitors, the MTS should have security protocols that keep data, applications, and application use separate. Also, because many tenants may opt for access to an MTS rather than maintain their own system, redundancy, up-time, and backup are additional functions that may be implemented in the MTS. In addition to user-specific data and tenant specific data, system 316 might also maintain system level data usable by multiple tenants or other data. Such system level data might include industry reports, news, postings, and the like that are sharable among tenants.
In certain embodiments, user systems 312 (which may be client systems) communicate with application servers 400 to request and update system-level and tenant-level data from system 316 that may require sending one or more queries to tenant data storage 322 and/or system data storage 324. System 316 (e.g., an application server 400 in system 316) automatically generates one or more SQL statements (e.g., one or more SQL queries) that are designed to access the desired information. System data storage 324 may generate query plans to access the requested data from the database.
Each database can generally be viewed as a collection of objects, such as a set of logical tables, containing data fitted into predefined categories. A “table” is one representation of a data object, and may be used herein to simplify the conceptual description of objects and custom objects. It should be understood that “table” and “object” may be used interchangeably herein. Each table generally contains one or more data categories logically arranged as columns or fields in a viewable schema. Each row or record of a table contains an instance of data for each category defined by the fields. For example, a CRM database may include a table that describes a customer with fields for basic contact information such as name, address, phone number, fax number, etc. Another table might describe a purchase order, including fields for information such as customer, product, sale price, date, etc. In some multi-tenant database systems, standard entity tables might be provided for use by all tenants. For CRM database applications, such standard entities might include tables for Account, Contact, Lead, and Opportunity data, each containing pre-defined fields. It should be understood that the word “entity” may also be used interchangeably herein with “object” and “table”.
In some multi-tenant database systems, tenants may be allowed to create and store custom objects, or they may be allowed to customize standard entities or objects, for example by creating custom fields for standard objects, including custom index fields. U.S. Pat. No. 7,779,039, filed Apr. 2, 2004, entitled “Custom Entities and Fields in a Multi-Tenant Database System”, which is hereby incorporated herein by reference, teaches systems and methods for creating custom objects as well as customizing standard objects in a multi-tenant database system. In certain embodiments, for example, all custom entity data rows are stored in a single multi-tenant physical table, which may contain multiple logical tables per organization. It is transparent to customers that their multiple “tables” are in fact stored in one large table or that their data may be stored in the same table as the data of other customers.
While one or more implementations have been described by way of example and in terms of the specific embodiments, it is to be understood that one or more implementations are not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
This application claims the benefit of U.S. Provisional Patent Application No. 61/738,469 entitled RECORDING DATA HISTORY IN THE PRESENCE OF ALTERNATIVE FLOW, by Abraham, et al., filed Dec. 18, 2012, U.S. Provisional Patent Application No. 61/738,474 entitled USING CUSTOM OBJECTS TO RECORD OBJECT HISTORY, by Abraham, et al., filed Dec. 18, 2012, and U.S. Provisional Patent Application No. 61/738,476 entitled MATERIALIZING HISTORICAL DATA FROM CURRENT DATA, by Abraham, et al., filed Dec. 18, 2012, the entire contents of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5577188 | Zhu | Nov 1996 | A |
5608872 | Schwartz | Mar 1997 | A |
5649104 | Carleton | Jul 1997 | A |
5715450 | Ambrose et al. | Feb 1998 | A |
5761419 | Schwartz | Jun 1998 | A |
5819038 | Carleton | Oct 1998 | A |
5821937 | Tonelli et al. | Oct 1998 | A |
5831610 | Tonelli et al. | Nov 1998 | A |
5873096 | Lim et al. | Feb 1999 | A |
5918159 | Fomukong et al. | Jun 1999 | A |
5963953 | Cram et al. | Oct 1999 | A |
6092083 | Brodersen et al. | Jul 2000 | A |
6161149 | Achacoso et al. | Dec 2000 | A |
6169534 | Raffel et al. | Jan 2001 | B1 |
6178425 | Brodersen et al. | Jan 2001 | B1 |
6189011 | Lim et al. | Feb 2001 | B1 |
6216135 | Brodersen et al. | Apr 2001 | B1 |
6233617 | Rothwein et al. | May 2001 | B1 |
6266669 | Brodersen et al. | Jul 2001 | B1 |
6295530 | Ritchie et al. | Sep 2001 | B1 |
6324568 | Diec et al. | Nov 2001 | B1 |
6324693 | Brodersen et al. | Nov 2001 | B1 |
6336137 | Lee et al. | Jan 2002 | B1 |
D454139 | Feldcamp et al. | Mar 2002 | S |
6367077 | Brodersen et al. | Apr 2002 | B1 |
6393605 | Loomans | May 2002 | B1 |
6405220 | Brodersen et al. | Jun 2002 | B1 |
6434550 | Warner et al. | Aug 2002 | B1 |
6446089 | Brodersen et al. | Sep 2002 | B1 |
6535909 | Rust | Mar 2003 | B1 |
6549908 | Loomans | Apr 2003 | B1 |
6553563 | Ambrose et al. | Apr 2003 | B2 |
6560461 | Fomukong et al. | May 2003 | B1 |
6574635 | Stauber et al. | Jun 2003 | B2 |
6577726 | Huang et al. | Jun 2003 | B1 |
6601087 | Zhu | Jul 2003 | B1 |
6604117 | Lim et al. | Aug 2003 | B2 |
6604128 | Diec | Aug 2003 | B2 |
6609150 | Lee et al. | Aug 2003 | B2 |
6621834 | Scherpbier | Sep 2003 | B1 |
6654032 | Zhu | Nov 2003 | B1 |
6665648 | Brodersen et al. | Dec 2003 | B2 |
6665655 | Warner et al. | Dec 2003 | B1 |
6684438 | Brodersen et al. | Feb 2004 | B2 |
6711565 | Subramaniam et al. | Mar 2004 | B1 |
6724399 | Katchour et al. | Apr 2004 | B1 |
6728702 | Subramaniam et al. | Apr 2004 | B1 |
6728960 | Loomans | Apr 2004 | B1 |
6732095 | Warshavsky et al. | May 2004 | B1 |
6732100 | Brodersen et al. | May 2004 | B1 |
6732111 | Brodersen et al. | May 2004 | B2 |
6754681 | Brodersen et al. | Jun 2004 | B2 |
6763351 | Subramaniam et al. | Jul 2004 | B1 |
6763501 | Zhu | Jul 2004 | B1 |
6768904 | Kim | Jul 2004 | B2 |
6772229 | Achacoso et al. | Aug 2004 | B1 |
6782383 | Subramaniam et al. | Aug 2004 | B2 |
6804330 | Jones et al. | Oct 2004 | B1 |
6826565 | Ritchie et al. | Nov 2004 | B2 |
6826582 | Chatterjee et al. | Nov 2004 | B1 |
6826745 | Coker | Nov 2004 | B2 |
6829655 | Huang et al. | Dec 2004 | B1 |
6842748 | Warner et al. | Jan 2005 | B1 |
6850895 | Brodersen et al. | Feb 2005 | B2 |
6850949 | Warner et al. | Feb 2005 | B2 |
7062502 | Kesler | Jun 2006 | B1 |
7340411 | Cook | Mar 2008 | B2 |
7356482 | Frankland et al. | Apr 2008 | B2 |
7401094 | Kesler | Jul 2008 | B1 |
7620655 | Larsson | Nov 2009 | B2 |
7698160 | Beaven et al. | Apr 2010 | B2 |
7779475 | Jakobson et al. | Aug 2010 | B2 |
7851004 | Hirao et al. | Dec 2010 | B2 |
8010663 | Firminger et al. | Aug 2011 | B2 |
8014943 | Jakobson | Sep 2011 | B2 |
8015495 | Achacoso et al. | Sep 2011 | B2 |
8032297 | Jakobson | Oct 2011 | B2 |
8082301 | Ahlgren et al. | Dec 2011 | B2 |
8095413 | Beaven et al. | Jan 2012 | B1 |
8095594 | Beaven et al. | Jan 2012 | B2 |
8209308 | Jakobson et al. | Jun 2012 | B2 |
8275836 | Beaven et al. | Sep 2012 | B2 |
8484111 | Frankland et al. | Jul 2013 | B2 |
8490025 | Jakobson et al. | Jul 2013 | B2 |
8504945 | Jakobson et al. | Aug 2013 | B2 |
8510664 | Rueben et al. | Aug 2013 | B2 |
8566301 | Rueben et al. | Oct 2013 | B2 |
8646103 | Jakobson et al. | Feb 2014 | B2 |
20010044791 | Richter et al. | Nov 2001 | A1 |
20020072951 | Lee et al. | Jun 2002 | A1 |
20020082892 | Raffel | Jun 2002 | A1 |
20020129352 | Brodersen et al. | Sep 2002 | A1 |
20020140731 | Subramanian et al. | Oct 2002 | A1 |
20020143997 | Huang et al. | Oct 2002 | A1 |
20020162090 | Parnell et al. | Oct 2002 | A1 |
20020165742 | Robbins | Nov 2002 | A1 |
20030004971 | Gong | Jan 2003 | A1 |
20030018705 | Chen et al. | Jan 2003 | A1 |
20030018830 | Chen et al. | Jan 2003 | A1 |
20030066031 | Laane et al. | Apr 2003 | A1 |
20030066032 | Ramachandran et al. | Apr 2003 | A1 |
20030069936 | Warner et al. | Apr 2003 | A1 |
20030070000 | Coker et al. | Apr 2003 | A1 |
20030070004 | Mukundan et al. | Apr 2003 | A1 |
20030070005 | Mukundan et al. | Apr 2003 | A1 |
20030074418 | Coker et al. | Apr 2003 | A1 |
20030120675 | Stauber et al. | Jun 2003 | A1 |
20030151633 | George et al. | Aug 2003 | A1 |
20030159136 | Huang et al. | Aug 2003 | A1 |
20030187921 | Diec et al. | Oct 2003 | A1 |
20030189600 | Gune et al. | Oct 2003 | A1 |
20030204427 | Gune et al. | Oct 2003 | A1 |
20030206192 | Chen | Nov 2003 | A1 |
20040001092 | Rothwein et al. | Jan 2004 | A1 |
20040015981 | Coker et al. | Jan 2004 | A1 |
20040027388 | Berg et al. | Feb 2004 | A1 |
20040128001 | Levin et al. | Jul 2004 | A1 |
20040186860 | Lee et al. | Sep 2004 | A1 |
20040193510 | Catahan et al. | Sep 2004 | A1 |
20040199489 | Barnes-Leon et al. | Oct 2004 | A1 |
20040199536 | Barnes Leon et al. | Oct 2004 | A1 |
20040249854 | Barnes-Leon et al. | Dec 2004 | A1 |
20040260534 | Pak et al. | Dec 2004 | A1 |
20040260659 | Chan et al. | Dec 2004 | A1 |
20040268299 | Lei et al. | Dec 2004 | A1 |
20050050555 | Exley et al. | Mar 2005 | A1 |
20050091098 | Brodersen et al. | Apr 2005 | A1 |
20090063415 | Chatfield et al. | Mar 2009 | A1 |
20090100342 | Jakobson | Apr 2009 | A1 |
20090177744 | Marlow | Jul 2009 | A1 |
20090313503 | Atluri | Dec 2009 | A1 |
20120041928 | Kamra | Feb 2012 | A1 |
20120233137 | Jakobson | Sep 2012 | A1 |
20130218948 | Jakobson | Aug 2013 | A1 |
20130218949 | Jakobson | Aug 2013 | A1 |
20130218966 | Jakobson | Aug 2013 | A1 |
20140359537 | Jakobson et al. | Dec 2014 | A1 |
20150007050 | Jakobson et al. | Jan 2015 | A1 |
20150095162 | Jakobson et al. | Apr 2015 | A1 |
20150172563 | Jakobson et al. | Jun 2015 | A1 |
Entry |
---|
U.S. Appl. No. 13/986,251, filed Apr. 16, 2013. |
Number | Date | Country | |
---|---|---|---|
20140172889 A1 | Jun 2014 | US |
Number | Date | Country | |
---|---|---|---|
61738469 | Dec 2012 | US | |
61738474 | Dec 2012 | US | |
61738476 | Dec 2012 | US |