Very slow first Mobile Service call after one minute incativity

My mobile service api (basic tire) response about 30 sec delay for the first call. The subsequent calls are fine but the first call even sometimes times out. Which is totally unacceptable. The worse is that after one minutes inactivity it stars again.
It uses SQL Server (Standard tire) which is the culprit I guess. Because if I do a manual db query before
the time lag of the api call disappear. I set up automated api calls  requesting db quires in about every minutes but did not helped. Looks like they are screened. 
What should I do until I have enough customers to get an api call every minutes?
It's a quite important issue because due to the bad user experience the app will never have enough customers.

I have done a lot of testing to gain more accurate data about the case. It's quite time consuming because I have to wait some minutes after each testing. I focused this time only one of my stored procedure and measured it from the app, from browser and from
VS SQL Server and turned out I was wrong there is a similar significant time lag from all method and if I wait enough about half an hour in all method the stored procedure call will time out. Thus, the underlying issue is probably in SQL Server.
The VS SQL Server provides the following error massage:
Msg 4083, Level 16, State 1, Procedure likingProbability, Line 51
The connection was recovered and rowcount in the first query is not available. Please execute another query to get a valid rowcount.
The actual rowcount in the code:
SELECT @howGood = howGood FROM goodforme.Scans WHERE itemId = @itemId AND userId = @userId
IF (@@ROWCOUNT > 0 AND (@howGood = @MAX_RATE OR @howGood = @MIN_RATE))
BEGIN
SET @howGoodPrediction = @howGood
RETURN
END
For me it looks like the rowcount should be valid. 
In the second call the response is valid but with huge delay like 20 sec, but in the subsequent calls it's linearly reduced to about 1 sec. And if the next call happens about 30 sec later the response will have increase again to about 10 sec time lag and so
on. Thank you for helping to solve the issue.

Similar Messages

  • Iphone 4s sound gets blank for 3-5 secs after one minute we call

    I have iphone 4s and in a call the sound gets blank for 3-5 secs after one minute we call , this happens every time and is not dependant on the carrier.
    its very irritating

    S2KRo ....
    I just got off the phone with Apple and I think you are right about the "selling for the Iphone 5".  She told me she could get me someone that can fix it but I first had to pay $120 to be transfered.  She also said that it's not the system update because they have had a LOW volume of calls for this issue. 
    I hung up with her and I'm gonna call back in a bit and see if I can get to the bottom of it. 

  • When calling or receiving calls, after a minute or so, is the call, give notice "call failed, THEN RUNS OUT OF SERVICE, then activated" SEARCHING "and then restoring the coverage. THIS FOR THE 100% of calls

    When calling or receiving calls, after a minute or so, is the call, give notice "call failed, THEN RUNS OUT OF SERVICE, then activated" SEARCHING "and then restoring the coverage. THIS FOR THE 100% of calls

    You may have a bad sim, contact your phone carrier and see if you can get a new one.

  • My samsung stratosphere is very slow to place a call.  I input the number and push CALL.  Nothing happens.  I try it again and nothing happens.  Then some time later (2-5 mins) the phone goes ahead and dials.  What is causing this delay in dialing?

    my samsung stratosphere is very slow to place a call.  I input the number and push CALL.  Nothing happens.  I try it again and nothing happens.  Then some time later (2-5 mins) the phone goes ahead and dials.  What is causing this delay in dialing.

    wadams5641,
    Let's add some speed to your service and ensure you can make calls without the
    delay. When was the last time you turned off your phone? Is the software up to
    date?
    KarenC_VZW

  • Join a service call and one serial number?

    In admin web tools
    Can  join a service call and one customer equipment card (serial number) ?

    The company sells machines for industry.
    Every machine and component has a serial number and u201Ccustomer equipment cardu201D in SBO.
    Usually, If the customer has a problem call to company.
    1.-  SBO user get the u201Ccall serveru201D
    2.- SBO user support join the u201Ccall serveru201D and  u201Ccustomer equipment cardu201D
    3.- SBO user go to call server  create a Delivery (works and equipment)
    Unfortunately the technical support, works in customer company and usually canu2019t entry to SBO in several days.
    We like use the u201Cweb toolsu201D, the technical support uses the web and can see the u201Ccall serveru201D, the Customer and marketing documents.
    But canu2019t assign a u201Ccustomer equipment cardu201D to  u201Ccall serveru201D and synchronize to SAP and create a Delivery by WEB
    Can you proposal a new work flow by web?
    Muchas gracias.

  • Calling India will disconnect after one minute

    dear Customer service,
    when we are calling to india and it will disconnect call after 1 minute and then again we have to call
    please solve this issue immediately and we cannot go like that.
    awaiting your reply soon
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content.

    callfailure wrote:
    but I am sorry to write the service is becoming worst.
    Hello
    We have answered this query many times. The problem has nothing to do with Skype or Microsoft. The local telco authorities in Saudi Arabia where you are located frequently disconnect outbound VoIP traffic to protect their own state run monopoly. Try accessing the internet via a VPN.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • MGP is starting off after one minute inspite of MGP_DELAY parameter

    Hello
    We have a strange problem. MGP starts and finishes fine...but it starts again after one minute which is the default value(60 seconds).
    We are using MGP_DELAY parameter in webtogo.ora with a value of 800 seconds..its still starts after one minute only...
    We are starting MGP from the mobile server and not as service..
    We restarted mobile server also..
    Can anybody help us with this strange behavior..
    Am I missing anything..
    Any help is greatly appreciated..
    thanks
    Yugandhar
    [email protected]

    Hi
    thanks for the info...looks like MGP_DELAY parameter works only when MGP is started as an NT service..thats why it didnt work on our case..
    we have modified mgp.bat file to take into account the time delay..
    thanks
    Yugandhar

  • HP 15-f009wm shuts down after one minute

    HP 15-f009wm, shuts down after one minute at idle. If you are doing something on it, like moving the mouse, it will stay on. I tried to go in, and change the power plans, and the options pertaining to this, but no help at all. I even tried to take the password off, so my wife wouldn't have a hard time trying to put it in, everytime it shuts down.  I seen the option, marked it, and it still needs the password to open it.

    If you have a virus and malware infestation, they you will have to certainly address that. This might be a good starting point to attempt to clean your system: Resolving and Preventing Viruses on Your Computer (Windows 8)
    This is one way you can prevent or at least reduce potential infection in the future:
    Using Windows 8 Defender to Prevent Virus and Spyware Problems
    Some virus and malware are very tough to remove. This may be the quickest way to clean your system and start over. If you do this, you may want to take the time to clean any external drives you may have (ie. USB Sticks) as to not potentially infect your system again: Performing an HP System Recovery (Windows 8)
    I hope this helps.
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • I have Snow leopard, 10.6.8 on my iMac, I just tried to install Lion from the App store, but during proces, the install stops after one minute saying: "software might be damaged". I downloaded the software again, same thing. What must I do to install Lion

    I have Snow leopard, 10.6.8 on my iMac, I just tried to install Lion from the App store, but during proces, the install stops after one minute saying: "software might be damaged". I downloaded the software again, same thing. What must I do to install Lion? I have still 487GB free.

    Quit all other programs and open Disk Utility
    Select your "MacintoshHD" drive on the left and indented and click Erase > Erase Free Space > Zero and let it complete.
    Also run First Aid > Repair Disk and permisisons.
    If Repair disk gives a error, you have a bigger problem, if repair permisisons fixes and completes, even if it fixes the same thing twice if you click it again, it's ok. Apple just changed things.
    You should be able to download the file sucessfully this time, if not, take it to another location with better/faster internet.
    If not then run through this list
    Step by Step to fix your Mac

  • Suddenly, time machine is very slow. Used to take up a minute and now more than half an hour. Does anybody know how this can happen? Indexing the back-up disk is off, but Timde Machine keeps on indexing!

    Suddenly, time machine is very slow. Used to take up a minute and now more than half an hour. Does anybody know how this can happen? Indexing the back-up disk is off, but Timde Machine keeps on indexing!

    same issue here...

  • Windows 8.1 automatically logs me out after one minute

    I downloaded and installed Windows 8.1 Pro a few days ago from TechNet. I'm logged in only with my Microsoft account (not a Domain account).
    For some reason, it logs me out automatically after one minute and takes me back to the login screen where I have to click and enter my password in. I checked all of the Power settings and the Screen Saver is off.
    Also, I've wanted to disable the login screen entirely since I live alone.  I've seen many articles about being able to disable it by unchecking the box in the netplwiz app, but the option doesn't even exist.
    Thanks in advance!

    Hi,
    May be you can try to boot into safe mode for test, or create a new account.
    In addition, netplwiz is a command to open Manage User Accounts. I doubt whether you had use it correctly.
    Press WIN+R, then type netplwiz , press
    Enter.
    Roger Lu
    TechNet Community Support
    I booted into Safe Mode (after figuring out the new method) and it logged me out after one minute.  I logged back in, created a new user, rebooted in normal mode, logged in as new user, was logged out after one minute.  Double-checked Advanced
    Power settings again -- nothing indicating this should be happening.

  • Rented movie but it kept freezing after one minute of play -help please

    Rented a movie on Apple TV but it kept freezing after one minute of play - help please

    Try waiting a few minutes, or longer, to see if the beachball goes away. Start up iTunes, then go do something else for awhile. Perhaps iTunes is going some overdue bookkeeping and once you let it do it it will work again.

  • My nano shuts down after one minute of use, why?  Brandnew

    My nano shuts down after one minute of use and it doesn't matter if I'm using the radio or playlist.  This is brand new so I've only ever listened to 1 minute of a song. Help

    Kevin,
    This usually happens when your headphones/earbuds aren't plugged all the way in. Double check the connection of the headphones and make sure the jack is free of debris.
    B-rock

  • My computer keeps going to user account after one minute of idlig. How can I change that?

    my computer keeps going back to user account after one minute of idling.  The only thing I know I did was to change the time on window themes.  Now how do I get the user account page from taking me from my page I am currently reading?  Does this after every 60 sec. of no activity.

    Hello again loveroflight,
    I am still not understanding apparently what your issue is. So I think it would be best if you contact HP Technical Support for repair options. They will be able to log onto your system and actually see what it is you are having and issue with and provide you with a resolution.
    I would like to thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Lync Server 2013 droping call after 15 minutes and 32 seconds

    Hi,
    we have Lync connected through Cisco UCM and Cisco Voice gateway to PSTN. Our ISP trunk is SIP based. Lync is dropping call after 15 minutes and 32 seconds. Did somebody had same problem and resolved it?
    Thanks

    Configure on Cisco call manager SIP-Session Timer Support
    http://www.cisco.com/en/US/docs/ios/voice/cube/configuration/guide/vb_1369_ps5640_TSD_Products_Configuration_Guide_Chapter.html#wp1061491
    Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer).

Maybe you are looking for

  • How to restore files from a backup in windows 8.1

    Hello I did a Factory Image reset recently on my Windows 8.1 PC.  I did a backup to an external drive of all my personal files before I did the Factory Image reset. This backup is listed on the external hard drive as:  "Backup files 2014-07-06"  THe

  • Certain fonts now available in Flash CS4

    Some of my fonts, namely Trebuchet and the entire Swiss family do not show up as options in Flash. I've also noticed this happens with Dreamweaver CS4 as well. I do admit I moved all of my fonts to mostly one location so I'm wondering if I violated s

  • Major Preview App annoyance - no way to scroll with mouse

    Apple apparently thinks everyone uses their trackpad. Not. There's now no way to scroll down with a mouse as with ML.  I have to take my hand off it and use the trackpad to scroll down.  And since Logitech hasn't released new software, and the old do

  • @count function

    Hi I am reading some old codes from my work and do not quite understand how they are using @count function. [code]      FIX (@relative("B&R",0),@relative("WBS",0),"Working") FIX (@children("All_Appr_Year"))               "Counts"               "Worki

  • Got this error mesage, "Insufficient memory error"

    Hi All, When running external reconciliation for particular BP, the user encountered this error message "SAP Business One has run out of memory; It will shut down automatically in order to prevent data inconsistencies".  Then application will automat