NetTalk Central

Author Topic: A single slow view friezes the whole server  (Read 5561 times)

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
A single slow view friezes the whole server
« on: April 29, 2016, 03:18:22 PM »
I have a browse when sorted by the description field the SQL server takes a very long time to return the results of the view.  Now I'm already take steps to make the view faster, that's not my big concern.  My big concern is that while waiting the the view results the net talk server won't respond to any other requests.  Or at least not any where the p_web object is ask to access the database.  The requests just keep piling up until the SQL server finally returns it's results.

Net talk; 8.68 with SQL Server 2012 Express

Thanks

Matthew
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: A single slow view friezes the whole server
« Reply #1 on: May 01, 2016, 06:18:13 PM »
are you using the MARS and Busyhandling driver strings on your SQL connection?

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: A single slow view friezes the whole server
« Reply #2 on: May 02, 2016, 11:21:52 AM »
MARS yes, Busyhandling no.

The only busy option I see in the driver options dialog is loop on busy error, which is set to 20.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: A single slow view friezes the whole server
« Reply #3 on: May 02, 2016, 02:54:28 PM »
search busyhandling on this NG for more info.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: A single slow view friezes the whole server
« Reply #4 on: May 03, 2016, 01:59:13 AM »
see
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=403.0
for busyHandling and MARS setup.

But also note that if you have p_web.sqlsync = true (ie in your embed code, probably in webhandler) then this is also asking the server to serialize access to the Sql server, and thus would only allow one thread to access the sql server at a time.

cheers
Bruce




Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: A single slow view friezes the whole server
« Reply #5 on: May 04, 2016, 10:34:32 AM »
Adding /BUSYHANDLING=2 to the connect string fix it.  The slow view is still slow, but everyone else doesn't suffer for it.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: A single slow view friezes the whole server
« Reply #6 on: May 05, 2016, 01:20:58 AM »
check the filter on the slow view and make upper. make sure it's not doing the filtering locally.