I'm building a website which uses angular for some parts for example filtering and sorting of a list of products
I'm using an umbracoapicontroller to return the list of products.(For context: I get the products and properties which can also be umbraco documents. And transform them to a product-viewmodel and also viewmodels for some of the properties)
The initial load is about 4 seconds, as in time at begining of apicontroller action compared to the end time in the apicontroller. After implementing a cache this is minimized to 0.02 seconds.
The problem is in the time between the end of the controller and de angular-service getting the response. (which by the way is json-format) This can be somewhere between 4 to 6 seconds. But I don't know what's exactly happening there. De tracelog doesn't provide me with any feedback when set to debug.
The json-object is not big, it's around 25Kb, so it isn't the amount of data.
Questions:
It's on dev-environment with debugging on, could this be the cause
Where to look for a solution, does anybody has some experience with this?
Could it be that the json serializer has difficulties with the complexity of the object?
Could something in the (umbraco)apicontroller responsible for the lag?
umbracoapicontroller very slow on complex object
Hi,
I'm building a website which uses angular for some parts for example filtering and sorting of a list of products
I'm using an umbracoapicontroller to return the list of products.(For context: I get the products and properties which can also be umbraco documents. And transform them to a product-viewmodel and also viewmodels for some of the properties)
The initial load is about 4 seconds, as in time at begining of apicontroller action compared to the end time in the apicontroller. After implementing a cache this is minimized to 0.02 seconds.
The problem is in the time between the end of the controller and de angular-service getting the response. (which by the way is json-format) This can be somewhere between 4 to 6 seconds. But I don't know what's exactly happening there. De tracelog doesn't provide me with any feedback when set to debug.
The json-object is not big, it's around 25Kb, so it isn't the amount of data.
Questions:
Any help is appreciated.
Greetings,
Garret
is working on a reply...