Jump to content
php.lv forumi

Php lēni strādā ar MS SQL


hoho

Recommended Posts

Sveiki,

 

Mēģinu ar php pieslēgties pie cita servera, mssql un vienkārši nolasīt visus datus:

 

SELECT top 100  
field1,  field3,  field3
FROM aspnet_db WITH (NOLOCK)
 
Viss strādā ātri. Bet ja nolasīt visus datus, 12000 ierakstus, strādā ļoti lēni, ~26s:
 
SELECT 
field1,  field3,  field3
FROM aspnet_db WITH (NOLOCK)
 
Uz paša servera nostrādā momentāni. Kur varētu būt problēma?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...