发明名称 Methods and systems for recursive saving of hierarchical objects to a database
摘要 Methods and systems include embodiments that recursively save parent, grandparent, and other records in a database that depend from a record. User-provided code within a save event or trigger can thus call further save methods without corrupting the database. Junction objects, objects that reflect records with two or more parents, can also be recursively saved.
申请公布号 US8918361(B2) 申请公布日期 2014.12.23
申请号 US201314036457 申请日期 2013.09.25
申请人 salesforce.com, inc. 发明人 Wong Simon Y.;Macklem Walter;Hofhansl Lars;Rajaram Varadarajan;Bezar Eric
分类号 G06F7/00;G06F17/00;G06F11/14;G06F17/30 主分类号 G06F7/00
代理机构 Blakely, Sokoloff, Taylor & Zafman 代理人 Blakely, Sokoloff, Taylor & Zafman
主权项 1. A method at a database system having at least a memory and a processor therein, wherein the method comprises: processing a set of records to be committed to the database system; detecting a fault with a record within the set of records while processing the set of records to be committed to the database system; performing fault recovery for the record having the fault, including at least: (i) determining the record having the fault is a parent record which depends from a field value of a child record, (ii) faulting the child record, (iii) identifying resource limitations counted against governor limits used up by processing the set of records including the record having the fault and the faulted child record, (iv) rolling back the identified resource limitations associated with the record having the fault and the faulted child record, and (v) removing the record having the fault and the faulted child record from the set of records to be committed to the database system resulting in subset of the set records to be committed to the database system; and committing the resulting subset of the set records to be committed to the database system.
地址 San Francisco CA US