海归网首页   海归宣言   导航   博客   广告位价格  
海归论坛首页 会员列表 
收 藏 夹 
论坛帮助 
登录 | 登录并检查站内短信 | 个人设置 论坛首页 |  排行榜  |  在线私聊 |  专题 | 版规 | 搜索  | RSS  | 注册 | 活动日历
主题: 教你们几招:中国大陆招软件人才的最佳捷径
回复主题   printer-friendly view    海归论坛首页 -> 海归招聘           焦点讨论 | 精华区 | 嘉宾沙龙 | 白领丽人沙龙
  阅读上一个主题 :: 阅读下一个主题
作者 教你们几招:中国大陆招软件人才的最佳捷径   
所跟贴 I use the myisam, but it's not million level , it only 200,000 or 500,000 records was stable -- 文成武德周,乾坤日月明,天地正气锋 - (390 Byte) 2005-1-19 周三, 08:03 (1013 reads)
ykliu




头衔: 海归少校

头衔: 海归少校


加入时间: 2004/07/21
文章: 78

海归分: 10818





文章标题: It's interesting. (1045 reads)      时间: 2005-1-19 周三, 08:55   

作者:ykliu海归招聘 发贴, 来自【海归网】 http://www.haiguinet.com

I am sure there are many mysql experts here. I am not trying to pretend to be one, just have some questions regarding your solution.

Frist of all the unstable and high CPU cost maybe not caused by mysql itself.
For example,
1. maybe your harddrive can not handle high data transfer rate and most CPU cost is on IO.
2. Maybe your memory is low so there are many swarping?
3. Maybe you allocate too few memory to mysql?
There are many other thing you could try to tune before look at mysql. I assume you did that.

You're actually manual partitioning your data, that's normal approach to handle mass data. The problem is mysql doesn't support view. You are creating quite a problem here.

In your example you are partitioning by 50,000. I guess it's a typo, should be 500,000. So for 10M records you need 20 tables.

If your application only select Single record from your tables by newsid, you can create a procedure or funcation to pre determine which table to select from. However if you want to select record base on any other columns of the table you will have trouble. You will also have problem on range selection. Since there's no view in mysql you have to union all tables to accomplish that, the CPU and IO cost is going to be hudge.

Remember we haven't touched the update, insert and delete part yet.

Ok, I am not trying to apply your postion, haha. Just my 2 cents.



作者:ykliu海归招聘 发贴, 来自【海归网】 http://www.haiguinet.com









相关主题
教你们几招:中国大陆招软件人才的最佳捷径 海归论坛 2005-1-19 周三, 05:09
中科院教授吕述望:中国没有互联网 海归商务 2013-7-09 周二, 17:07
中科院教授吕述望:中国没有互联网 海归茶馆 2013-7-09 周二, 17:06
[新闻]中科院教授吕述望:中国没有互联网 海归主坛 2013-7-09 周二, 17:05
[教学]臧克家:《国旗飘在雅雀尖》【此国旗非五星红旗】 春秋茶馆 2010-9-29 周三, 10:33
[问题]很严肃的请教一个问题:中国的私人公司和国家的事业单位合伙, 海归主坛 2008-6-30 周一, 22:46
ZT: “热点”教授丘成桐:中国教育走了很多好笑的路 海归论坛 2006-8-03 周四, 00:48
请教各位大虾:美国的IPO是否一次将全部公司股票上市?比如今日的ICE。 海归论坛 2005-11-17 周四, 06:18

返回顶端
阅读会员资料 ykliu离线  发送站内短信
显示文章:     
回复主题   printer-friendly view    海归论坛首页 -> 海归招聘           焦点讨论 | 精华区 | 嘉宾沙龙 | 白领丽人沙龙 所有的时间均为 北京时间


 
论坛转跳:   
不能在本论坛发表新主题, 不能回复主题, 不能编辑自己的文章, 不能删除自己的文章, 不能发表投票, 您 不可以 发表活动帖子在本论坛, 不能添加附件可以下载文件, 
   热门标签 更多...
   论坛精华荟萃 更多...
   博客热门文章 更多...


海归网二次开发,based on phpbb
Copyright © 2005-2024 Haiguinet.com. All rights reserved.