Performance Overhead always passing "true" for recursive saves

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 18-May-2010 00:15:59   

Is there any reasonable performance overhead in always passing in true for the recurse param when saving an entity?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-May-2010 05:53:08   

The framework is "smart" enough to determine what sql should be emitted for your graph in a Save action. So when you send recursive=true you receive the minimum overhead possible. For example, only the changed entities are sent, and only the dirty fields are placed in the sql query. Now, if you just need to save the root entity/ies of the graph, then don't specify recursive=true, you will save some milliseconds I think.

David Elizondo | LLBLGen Support Team
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 18-May-2010 16:26:26   

thank you