Reply
Mysql Basics - Indexes, optomization, flushing, structure
Old 08-25-2006, 10:13 AM Mysql Basics - Indexes, optomization, flushing, structure
Webmaster Talker

Posts: 602
Location: Atlanta, GA
Trades: 0
I have used mysql for a few years, but I am starting to get pretty intensive in my use of it now. So, I need to ask some basic questions about using it on a large scale.

1. Index - It am guessing it is a good idea to setup an index. I did so, but now I am not exactly certain how to use it. Does mysql know to use the index whenever I search for something in the field specified as the index? I am really not clear on how this helps. Can someone clarify this for me?

2. Optomization - How often shoud I optomize, check, repair, and flush the table? Should these be done in any particular order? Should any of these NOT be done? Is there a way to automate this process?

3. Structure - Is there a resource I might use to learn the fundamentals of what is a good structure for a database? Something that explains everything in fairly non technical lingo, since I haven't been formally instructed on any of this.

4. Is there a limit (rows, fields, index size, total size, concurrent searches) to keep in mind? Meaning, is there a threshold after which mysql becomes slow?

5. Are there any tips, tricks, shortcuts that I should keep in mind when running mysql?


One final thing. When I imported a csv file into my database, it did something funny. On any of the entries that my php script input, another script was able to find them using the SELECT * = WHEN. However, after I imported the data from csv, it would only work when the script used the LIKE %%. Did I mess something up there? When I compared two rows from those two groups, I saw nothing different. It's almost as though there is an invisible character somewhere in the csv file.

Thanks for your help in advance.
neorunner is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-25-2006, 06:53 PM Re: Mysql Basics - Indexes, optomization, flushing, structure
yoemanspiffy's Avatar
Experienced Talker

Posts: 42
Trades: 0
Indexes: How to exploit MySQL index optimizations - Xaprb

I recently had the same problem with a csv import. I used MySQLFront to get in ad found that the import had added a space in front of every string cell.

YM
__________________
My grandfather used to work for your grandfather. Of course the rates have gone up.

http://www.goldentechinc.com
yoemanspiffy is offline
Reply With Quote
View Public Profile Visit yoemanspiffy's homepage!
 
Reply     « Reply to Mysql Basics - Indexes, optomization, flushing, structure
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13132 seconds with 13 queries