Welcome to WebmasterWorld Guest from 54.159.19.75

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

phpmyadmin, oops

did i mess up?

     
4:05 pm on Aug 8, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 4, 2002
posts:187
votes: 0


(pardon my ignorance)
I was trying to look at a database with phpmyadmin but I don't know what I'm doing and may have clicked on the wrong thing.

I tried to open a specific row to look at it and clicked on "change" in the action column but it didn't do anything and I backed out of that, so I clicked on "fulltext" and it said that an index was created for that row. Is that ok?

It said this,
An index has been added on language (Query took 0.2629 sec)
SQL-query : [Edit] [Create PHP Code]
ALTER TABLE `phpads_clients` ADD FULLTEXT (
`language`
)

Apparently there's an index for "language" now, will that adversely affect anything? Everything seems to be fine, but I don't know what the "index" means.

4:22 pm on Aug 8, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:June 3, 2004
posts:55
votes: 0


Indexes are a seperate files in mysql that aid in speeding up your querys, but every update or insert causes this file to be updated also which takes time, so indexes are a mixed blessing.
For best performance you should only index columns that are used in where statments.
4:24 pm on Aug 8, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 4, 2002
posts:187
votes: 0


Ok, so should I leave it as is, or try to delete the index that was accidentally created?
5:43 pm on Aug 8, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Apr 27, 2003
posts:243
votes: 0


If that column is used in a where statement a large amount of the time then no, if not delete it. Up to you. Read m_shroom's post.
6:03 pm on Aug 8, 2004 (gmt 0)

Moderator

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 25, 2002
posts:8135
votes: 93


Keep in mind, though, that he made a *full text* index, which is probably not what he wants. Unless you're planning to do searches that will have phrases or inexact matches, better to delete and add a regular index if needed.

That said, leaving it there doesn't really do any harm.

Tom