I can’t find the performance characteristics for System.Data.Linq.Table<T entity> methods! I refer to methods like insertonSubmit and deleteonSubmit. Are these methods are O(1) or O(n)?
I can’t find the performance characteristics for System.Data.Linq.Table<T entity> methods! I refer to methods
Share
The
InsertOnSubmitandDeleteOnSubmittake a single object, so their performance should beO(1): all they do is appending to the insertion queue, which is either anO(1)or an amortizedO(1)for all unordered containers.InsertAllOnSubmitandDeleteAllOnSubmit, on the other hand, areO(N), whereNis the length of theIEnumerablepassed into the method.