×

Methods and systems for bulk row save logic in an object relational mapping layer and application framework

  • US 8,682,863 B2
  • Filed: 02/23/2007
  • Issued: 03/25/2014
  • Est. Priority Date: 10/04/2006
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving, from an object relational mapping layer Application Programming Interface (API) of a database in a known start state, a set of rows to save together in the database, wherein the database comprises a multi-tenant database system having elements of hardware and software shared by multiple customers, and further wherein the set of rows to save together comprises requests for multiple of the customers to be simultaneously processed together in the database;

    saving the set of rows together in the database until each row not associated with faulting in the set of rows has been saved in the database;

    determining that one or more faults occurred in saving the set of rows;

    rolling back the set of rows to the known start state;

    rolling back any side effects that were permitted to execute;

    rolling back any resource usage counted against governor limits by executing side effects;

    forming a new set of rows not associated with the one or more faults to save together in the database from the set of rows by removing rows associated with the one or more faults during the saving of the set of rows in the database;

    repeatedly saving in the database and forming using the new set of rows until a set of rows that can be saved in the database from the known start state without fault is determined; and

    updating resources used and checking against governor limits.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×