Fetching breeze metadata is slow in Chrome, fast in IE -
Fetching breeze metadata is slow in Chrome, fast in IE -
it appears fetching metadata model extremely slow in chrome, fast in ie.
my dbcontext contains around 35 entities lots of navigation properties , each entity add together adds delay. delay around 20 seconds, starting after query has returned raw metadata, , it's exclusively cpu working heavily, memory usage stays stable. i've got i7 processor , ample memory.
i know there differences in how javascript engine geared in these 2 browsers, chrome javascript jit compiler beingness optimised floating point operations (which why webgl graphics one thousand times faster in chrome ie) - having impact on work fetchmetadata has do?
has else noticed slowness? relationships wrong? 1 time delay on works though, i'm doubting relationships problem.
found problem , solution!
thank taking time @ this, after reply decided strip whole project downwards basics reproduce problem , interference.
this older project in had implemented breeze. project used standard jquery post/get methods info mvc, , since dates , times have been problem when posting , receiving json info mvc had code in startup script:
// add together datafilter jquery ajax calls translate dates $.ajaxsettings.datafilter = function (data, type) { //if (type === 'json') { // convert things dates utc date string , replace them. info = data.replace(/(.*?")(\\\/date\([0-9\-]+\)\\\/)(")/g, function (fullmatch, $1, $2, $3) { seek { homecoming $1 + new date(parseint($2.substr(7))) + $3; } grab (e) { } // miserable happened, homecoming original string homecoming $1 + $2 + $3; }); //} homecoming data; };
after removing code (since breeze dates properly), works normal. type of code may mutual in other older projects had deal dates, know got above snippet wiredprairie , i'm sure others run problem.
breeze
Comments
Post a Comment