22

!rant

Reduced a page load time from 23.8 seconds to 0.5 seconds by disabling tracking of entities on the page. Felt awesome.

Comments
  • 1
    Nice!!
  • 4
    Had similar results after going pure from jQuery.
  • 1
    Going by the tag 'linq', I'm assuming you are using entity framework? If you are using EF, at what point of your transaction did you disable tracking? I'm asking coz this is useful info and could possibly apply to other ORMs too.
  • 1
    @swazza: You are correct. I set it at the beginning of transferring my data to a DTO. And then turn it back on after the transfer is complete. Basically, if I'm using aentity and .Add() to a list, I disable the tracking and then re-enable after adding all items.
Add Comment