由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - MySQL Question
相关主题
新手求助: 学那个DATABASE软件好呢?A PHP programmer is invited to join a stock research group (转载)
mysql challengemySQL
MySQL database backupRe: question about CAST and Multiset
mysql -- could not use the database请问DATABASE各位大侠
about Oracle RAC... some thoughtswhat is optimizer statistics in Oracle?
1个DBA,一个系统管理员SQL question...
请教个数据管理的问题菜鸟一问!-望解答!
mysql performance怎么学database ?
相关话题的讨论汇总
话题: mysql话题: program话题: question话题: sorry话题: rows
进入Database版参与讨论
1 (共1页)
n******e
发帖数: 50
1
Sorry can not input chinese now.
I use mysql in my program. I need to update the status of
the rows and add new rows very frequently: 20updates and
20*20additions per second. Now the bottle neck of the whole
program is the database: I can only reach to no more than
10updates and 10*10 additions per second. Can anybody give
me some tips to speed it up? My program is written in C,
I use the .h and lib files provided in mysql package. I
access the database in a similar way as a client program.
The
a*****e
发帖数: 1700
2
Sorry, but you have reached the bottleneck of most DBMS. MySQL
is one of the fastest, but I guess if you really want to
get around with it, you have to modify the way you code your
program. I remebered seeing somewhere MySQL has a low level
locking mechanism, you can use it instead of normal locking
occurred in "insert" and "update". Or you can get rid of the
locking completely if you program is single thread and you
want to take the risk. It will really speed up the whole thing.
I am sorry I ca

【在 n******e 的大作中提到】
: Sorry can not input chinese now.
: I use mysql in my program. I need to update the status of
: the rows and add new rows very frequently: 20updates and
: 20*20additions per second. Now the bottle neck of the whole
: program is the database: I can only reach to no more than
: 10updates and 10*10 additions per second. Can anybody give
: me some tips to speed it up? My program is written in C,
: I use the .h and lib files provided in mysql package. I
: access the database in a similar way as a client program.
: The

1 (共1页)
进入Database版参与讨论
相关主题
怎么学database ?about Oracle RAC... some thoughts
问个基础的理论问题----数据库的基本差异1个DBA,一个系统管理员
谁给比较一下PostgreSQL和mysql请教个数据管理的问题
再问CS的方向选择问题mysql performance
新手求助: 学那个DATABASE软件好呢?A PHP programmer is invited to join a stock research group (转载)
mysql challengemySQL
MySQL database backupRe: question about CAST and Multiset
mysql -- could not use the database请问DATABASE各位大侠
相关话题的讨论汇总
话题: mysql话题: program话题: question话题: sorry话题: rows