简体   繁体   中英

Good SQL engine for huge rows in a single column table

I have a table where I store almost any English word . This table is for a Scrabble type word game currently I am working on. Here is the syntax,

create table words(
    `word` varchar(50),
    primary key `word`
)

This table will be very big. And I have to check every time if the given word exists when gamer makes a move.

I am using mysql. Currently I have stored ENABLE words there. My question is when I start adding more words and gamers start to play wont it be performing low? If so, is there any way I can optimize it? Does NO-SQL has anything to do with this scenario?

You should have no performance problems but if you are worried about performance you can keep this in mind:

Using LIKE instead of = will cause slower queries if you have a lot of rows. (but you must have an extremely large amount of rows for a noticeable difference)

Also, you might do some testing to see which performs better on large tables, select count or select * or select word.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM