dbTalk Databases Forums  

slow view

comp.databases.mysql comp.databases.mysql


Discuss slow view in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
LittleRob
 
Posts: n/a

Default slow view - 01-05-2007 , 03:19 PM






Hi

My actual situation is rather complex, so I'll try to reduce it to its
component parts.

If I execute a select along the lines of

select * from sometable where indexedfield=99

then its quite quick (about 0.2 second) even getting 400 rows from 80,000

If I create a view of the same then its equally quick.

However, if I create a view of the SELECT without the WHERE clause

then do

select * from myview where indexedfield=99

Then it takes upto a minute.

Is there anything I can do to improve performance, since clearly its the
latter example that I need in my application.

Cheers

Rob



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.