I have a weird scenario which clearly states I do not understand WCF as good as I should.
I list 50 000 records and create "Entities" that I want to return to my front end. The whole process takes under 2 seconds to complete.
But then the serialization start server side - outside my "code" - but it uses only one processor to serialize the data - this takes 4 minutes? Except for overriding the "onserialize" - what other options is there available?
I make use of BasicHttpChannel - no security currently - and encoding is default - not MTOM.
Any advice would be great - thanks!
EDIT:
I have a simple load call which returns a POCO (nothing special) - only the data - 5 properties - all strings - one long.
EDIT:
To clarify - to load the data from the frontend via WCF till the data (POCO's) reach the "entry point" again where the "call" is returned takes 2 seconds.
Thereafter I see only my one processor "spike" up to 100% for approximately 4 minutes - my opinion is this is where the data is serialized to be returned - I want to know whether WCF has an option to allow more processor to do this work - or is my only option to override OnSerializing?