2012-02-18, 02:18 AM
This isn't really a major issue but I'm curious...
When I set/cancel a recording from my phone using nDroid and haven't done so for a while, it seems like the NEWA web-service takes a while to 'wake up' and it takes a while before the nDroid service gets a result to pass back to my phone. If I then submit another schedule / cancel request the response is pretty much immediate.
Example for two episodes of Scrubs...
This is the nDroid service HTTP listener receiving a record requestfor the first...This is the nDroid service helper getting the data to pass to the NEWA webservice and the point where the result is returned...So it takes ~2.5 seconds of processing from the time the listener receives the request until the helper makes the request to the webservice. However, it then takes the webservice just over 22 seconds to set the recording and return a result.
If I look at the second record request though I see a much faster response from the webservice...
Listener receives request...Helper performs the request and gets a result...OK so that shows the nDroid service was also a bit sleepy the first time as it only takes 47ms between the listener receiving the request and and the helper performing the request. The big difference, however, is that it takes the web-service less than 400ms to set the recording and return a result.
As I said, it's not a major issue, I'm just trying to work out why the first request took so long.
Cheers,
Brian
When I set/cancel a recording from my phone using nDroid and haven't done so for a while, it seems like the NEWA web-service takes a while to 'wake up' and it takes a while before the nDroid service gets a result to pass back to my phone. If I then submit another schedule / cancel request the response is pretty much immediate.
Example for two episodes of Scrubs...
This is the nDroid service HTTP listener receiving a record requestfor the first...
Code:
[B]18/02/2012 01:12:53.328[/B] hrhkey.Key: x-ndroid-action hrhkey.Value: record
Code:
18/02/2012 01:12:55.468 GetRequestedRecordingOid - sbQueryString: SELECT oid,channel_oid,start_time,title FROM EPG_EVENT WHERE EPG_EVENT.channel_oid = 7969 AND EPG_EVENT.start_time = '2012-02-18 01:50:00' AND EPG_EVENT.title = 'Scrubs'
18/02/2012 01:12:55.703 GetRequestedRecordingOid - oidString: 7589020
18/02/2012 01:12:55.765 GetRequestedRecordingOid - startString: 18/02/2012 01:50:00
[B]18/02/2012 01:12:55.843[/B] GetRequestedRecordingOid - weekdayString: Saturday
[B]18/02/2012 01:13:18.078[/B] Result.webServiceEPGEventObjects:
18/02/2012 01:13:18.078 schedOid: 13204
If I look at the second record request though I see a much faster response from the webservice...
Listener receives request...
Code:
[B]18/02/2012 01:13:28.765[/B] hrhkey.Key: x-ndroid-action hrhkey.Value: record
Code:
18/02/2012 01:13:28.781 GetRequestedRecordingOid - sbQueryString: SELECT oid,channel_oid,start_time,title FROM EPG_EVENT WHERE EPG_EVENT.channel_oid = 7969 AND EPG_EVENT.start_time = '2012-02-18 02:20:00' AND EPG_EVENT.title = 'Scrubs'
18/02/2012 01:13:28.812 GetRequestedRecordingOid - oidString: 7589021
18/02/2012 01:13:28.812 GetRequestedRecordingOid - startString: 18/02/2012 02:20:00
[B]18/02/2012 01:13:28.812[/B] GetRequestedRecordingOid - weekdayString: Saturday
[B]18/02/2012 01:13:29.203[/B] Result.webServiceEPGEventObjects:
18/02/2012 01:13:29.203 schedOid: 13205
As I said, it's not a major issue, I'm just trying to work out why the first request took so long.
Cheers,
Brian