Well I have narrowed it down to the SQL statements themselves. In the first script I call I tested my 2 SQL calls and they took a total of 21 seconds. No, I'm not familiar with indexes. I've started reading the O'reilly book Managing and Using MySql and I've seen it mentioned but I havn't taken the dive to learn about them yet. I have plenty of space to use (since I heard this is what they require). My database only takes up about 70 MB (down oddly enough from 175 MB since I switched from MS Access). Any suggestions for a quick start before I dive back into my book and the MySql Docs? | [reply] |
If you're not using indexes, that could well explain why your selects are slow. What you want to do is identify the columns you are selecting on, (like if you have select * from mytable where name="bob"), and index those columns. (In this case, index the "name" column). If you are doing joins, index the columns of both tables you are joining on. Refer to the MySQL manual for help:
| [reply] [d/l] |
| [reply] |