Re: SqlServer *much* slower waking up than MySQL...change what configs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



While it could be a lot of things, one obvious one is that by default SQL
Express databases are set up as auto-close which means the first connection
starts up the database. You can use ALTER DATABASE to set AUTO_CLOSE to OFF
to see if this is part of your problem.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Sky" <public.skysigal{*AT*}xact-solutions.com> wrote in message
news:9D5D90EA-103C-4E31-B635-3F39FF0412F0@xxxxxxxxxxxxxxxx
I've installed SqlServer Express, mixed mode, on our webserver to give it
a
spin.

The first main thing that I observe is that the initial response time of
SqlServer from a PHP page is like 30 seconds to wake up and access the db.
Same operation with a MySQL is basically instantaneous: once the services
are running, the db is ready to go.

Here, it appears that SqlServer is dumping the db from memory at regular
intervals if nobody has queried for it in a while, and when it is needed
again, it takes a wildly long time to load it up, parse it, prepare
indexes,
etc.

Is there a way to configure SqlServer Express to be ready to roll
immediately? I would like to write to write an application that uses it, a
quick and dirty interface that covers a large table but with simple
requests,
and it just seems really wierd (ie wrong) that I have to write a splash
screen to cover the 10-20 seconds it takes for the db to come online.

Both MySQL as a service, and Sqlite, as an in process dll (yes, I know,
not
the same thing at all) are ready to go immediately -- I would just like to
stick with MS products if I can get around this very serious issue. Does
anybody have advice on this?


I also would like to know why in MySQL one can have several apps talking
to
the same database at the same time without locking up: ie, a DBMS, and a
website both talking to the database at the same time, same user, dif
thread.
Whereas SqlServer seems to cause an error if I open the same db with the
DBMS, or Visual Studio, and then try to run the website, or vice versa,
with
the same credential.
This just has to be from a misunderstanding on my part of how to set up
and
use SqlServer. Any advice for this?






.



Relevant Pages

  • Re: Requery subforms that dont have a Master/Child relationship
    ... I don't need the forms on the Website. ... I plan a desktop database in Access ... For the Website, use PHP and MySQL. ... I have joined these other tables to tblMain in separate ...
    (microsoft.public.access.formscoding)
  • Re: How to send data from local database to MySQL db on website
    ... There is a hosted website, actually built using Joomla, that has a MySQL database. ... We want to simply take a subset of data from the Access database and copy it up to the website database. ...
    (comp.databases.ms-access)
  • Re: How to send data from local database to MySQL db on website
    ... There is an existing Access database in the office. ... There is a hosted website, actually built using Joomla, that has a MySQL ...
    (comp.databases.ms-access)
  • Re: LDBC driver
    ... The generic database handling we have allows us to implement a database-clone action from one provider to the next and we have used that several times to "upscale" users from MySQL or SQLServer to PostgreSQL or Oracle. ... We use a reverse proxy for load-balancing purposes on the ASP platform and started with Pound, then moved to yxorp but needed some facilities both could not provide and finally decided to code a reverse proxy servlet ourselves. ...
    (comp.lang.java.databases)
  • Re: How to send data from local database to MySQL db on website
    ... It should be pointed out that MySQL is just a database and doesn't ... Thus it would make more sense to say "convert to a PHP ... there's a website so there's already a PHP application. ...
    (comp.databases.ms-access)