METHODS AND SYSTEMS FOR BULK ROW SAVE LOGIC IN AN OBJECT RELATIONAL MAPPING LAYER AND APPLICATION FRAMEWORK
First Claim
Patent Images
1. A method for saving multiple rows together through an object relational mapping layer to a database, the method comprising:
- receiving, at an API in a known start state, a set of rows to save together;
saving the set of rows together until each row in the set of rows has been saved;
forming a new set of rows from the set of rows by removing rows associated with faulting during saving; and
repeatedly saving and forming using the new set of rows until a set of rows that can be saved from the known start state without fault is determined.
1 Assignment
0 Petitions
Accused Products
Abstract
In accordance with embodiments, there are provided mechanisms and methods for saving multiple rows together through an object relational mapping layer to a database. These mechanisms and methods for saving multiple rows together can enable embodiments to detect faults in the save operation(s) and recover. The ability of embodiments to detect faults in the save operation(s) and recover can enable embodiments to provide a robust forgiving published API that saves a set of rows together whenever possible.
154 Citations
19 Claims
-
1. A method for saving multiple rows together through an object relational mapping layer to a database, the method comprising:
-
receiving, at an API in a known start state, a set of rows to save together; saving the set of rows together until each row in the set of rows has been saved; forming a new set of rows from the set of rows by removing rows associated with faulting during saving; and repeatedly saving and forming using the new set of rows until a set of rows that can be saved from the known start state without fault is determined. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A machine-readable medium carrying one or more sequences of instructions for saving multiple rows together through an object relational mapping layer to a database, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of:
-
receiving, at an API in a known start state, a set of rows to save together; saving the set of rows together until each row in the set of rows has been saved; forming a new set of rows from the set of rows by removing rows associated with faulting during saving; and repeatedly saving and forming using the new set of rows until a set of rows that can be saved from the known start state without fault is determined. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. An apparatus for saving multiple rows together through an object relational mapping layer to a database, the apparatus comprising:
-
a processor; and one or more stored sequences of instructions which, when executed by the processor, cause the processor to carry out the steps of; receiving, at an API in a known start state, a set of rows to save together; saving the set of rows together until each row in the set of rows has been saved; forming a new set of rows from the set of rows by removing rows associated with faulting during saving; and repeatedly saving and forming using the new set of rows until a set of rows that can be saved from the known start state without fault is determined.
-
-
18. A method for transmitting code for saving multiple rows together through an object relational mapping layer to a database on a transmission medium, the method comprising:
-
transmitting code to receive, at an API in a known start state, a set of rows to save together; transmitting code to save the set of rows together until each row in the set of rows has been saved; transmitting code to form a new set of rows from the set of rows by removing rows associated with faulting during saving; and transmitting code to repeatedly save and form using the new set of rows until a set of rows that can be saved from the known start state without fault is determined.
-
-
19. A method for saving multiple rows together through an object relational mapping layer to a database, the method comprising:
-
(A) receiving, at an API in a known start state, a set of rows to save together; (B) attempting to save the set of rows together, while recording fault information for any save operation that faults, until each row in the set of rows has been attempted at least once; and (c) committing the save of the entire set of rows if no fault(s) have occurred;
otherwise(i) rolling back the save of the entire set of rows to the known start state; (ii) removing rows corresponding to faults from the set of rows to save together to form a subset of rows to save together; and (iii) repeating steps (B)-(C) using the subset of rows as a new set of rows to save together until a subset of rows that can be saved and committed without fault is found.
-
Specification