Re: Really slow query (compared with Visual FoxPro)

2003-10-27 Thread "Héctor Villafuerte D."
Mojtaba Faridzad wrote: BUT my experience: try to change the logic of your report not to retrieve large number of records. user LIMIT to create the reports page by page. this is the best and even better for the user. Ok thanks, but how exactly do I change-the-logic of this query: mysql> select te

Re: Really slow query (compared with Visual FoxPro)

2003-10-27 Thread "Héctor Villafuerte D."
Chris wrote: Hmm It's just occured to me that you're basically copying and entire table from one place to another. If I recall correctly, FoxPro cheats somewhat in this situation - it just copies the concerned files! Which table type are you using (something I should have asked in the begi

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Mojtaba Faridzad
etter for the user. good luck - Original Message - From: "Matt W" <[EMAIL PROTECTED]> To: "Héctor Villafuerte D." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 24, 2003 3:00 PM Subject: Re: Really slow query (compared with Visual Fo

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Matt W
Hi Hector, Umm, it looks like you're simply doing a SELECT in the first query and *populating a new table* in the second. Of course inserting 3.3 million rows is going to take extra time! How can you even compare the 2 when they're doing different things? Matt - Original Message - From

RE: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Dan Greene
As you are selecting all records (no where clause), it will scan the whole table every time, I believe... does anyone know if he added the other columns to his index, or had 4 seperate indexes (one per column) would they be used in this operation? > > Ok, I've found the optimization chapter i

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread "Héctor Villafuerte D."
Dan Greene wrote: Indexes are your friend. Perhaps your best friend (as far as databases go) --- To give light on your question... you can index any field... if the entries are distinct, it's called a 'unique index' which are the best kind to use. Otherwise you have

RE: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Dan Greene
u/Quick_Ref/MySQL_QuickRef.pdf (MySQL Quick Reference Card) Related links http://dmoz.org/Computers/Software/Databases/MySQL/Tutorials/ > -Original Message- > From: "Héctor Villafuerte D." [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 1:40 PM > To: [E

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Chris Nolan
Hi! One thing that you have to remember is that FoxPro will always index some fields, while MySQL will only ever index the primary key field automatically. Indexes can be on fields that are distinct or not distinct. The only difference that exists is the nature of the index, which is one of tho

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread "Héctor Villafuerte D."
Chris Nolan wrote: Hi! Given VFP's internals (I have to support FoxPro 2.6 apps, oh the pain of it all!), MySQL should be capable of much better performance, considering the only thing FoxPro has in terms of a possible advantage is Rushmore. Which indexes do you have on the tables in the query?

Re: Really slow query (compared with Visual FoxPro)

2003-10-24 Thread Chris Nolan
Hi! Given VFP's internals (I have to support FoxPro 2.6 apps, oh the pain of it all!), MySQL should be capable of much better performance, considering the only thing FoxPro has in terms of a possible advantage is Rushmore. Which indexes do you have on the tables in the query? Regards, Chris H