亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3821 | 回復: 4
打印 上一主題 下一主題

mysql分區(qū)問題 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-07-20 15:16 |只看該作者 |倒序瀏覽
本帖最后由 johnjobe123 于 2011-07-20 15:21 編輯

mysql edition  5.5
    由于項目的需要,我們要創(chuàng)建比較多的分區(qū)(差不多要有20000個吧),但是通過查看文檔,發(fā)現(xiàn)其最多可以支持1024(加上子分區(qū))各分區(qū),
是不是可以調(diào)整,怎么調(diào)整,請高手指點。。。。



附文檔關于分區(qū)個數(shù)的內(nèi)容:

Maximum number of partitions.  The maximum possible number of partitions for a given table is 1024. This includes subpartitions.

If, when creating tables with a large number of partitions (but less than the maximum), you encounter an error message such as Got error ... from storage engine: Out of resources when opening file, you may be able to address the issue by increasing the value of the open_files_limit system variable. However, this is dependent on the operating system, and may not be possible or advisable on all platforms; see Section C.5.2.18, “'File' Not Found and Similar Errors”, for more information. In some cases, using large numbers (hundreds) of partitions may also not be advisable due to other concerns, so using more partitions does not automatically lead to better results.

論壇徽章:
0
2 [報告]
發(fā)表于 2011-07-20 15:43 |只看該作者
Waiting for you answer !!! Thank you !

論壇徽章:
0
3 [報告]
發(fā)表于 2011-07-21 15:38 |只看該作者
The maximum possible number of partitions for a given table is 1024。說的是一個表最多只能有1024個分區(qū),LZ一個表要分出20000多的分區(qū)?

論壇徽章:
59
2015七夕節(jié)徽章
日期:2015-08-24 11:17:25ChinaUnix專家徽章
日期:2015-07-20 09:19:30每周論壇發(fā)貼之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38榮譽版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年紀念徽章
日期:2015-07-20 11:05:27IT運維版塊每日發(fā)帖之星
日期:2015-07-20 11:05:34操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:36程序設計版塊每日發(fā)帖之星
日期:2015-07-20 11:05:40數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2015-07-20 11:05:432015年辭舊歲徽章
日期:2015-07-20 11:05:44
4 [報告]
發(fā)表于 2011-07-23 15:30 |只看該作者
太狠了。2W多個分區(qū)?

論壇徽章:
0
5 [報告]
發(fā)表于 2011-07-25 10:49 |只看該作者
回復 1# johnjobe123


    除非你重新修改源代碼,本人要說的不是如何修改,而是告訴一個測試驗證的思考:
,我們要創(chuàng)建比較多的分區(qū)(差不多要有20000個吧)

創(chuàng)建的分區(qū)過多,性能會急劇下降的.............我曾經(jīng)創(chuàng)建:父分區(qū)為季度,子分區(qū)為天,與只有一級分區(qū),為天的同樣數(shù)據(jù)量的測試,發(fā)現(xiàn)性能下降明顯.....當然其中有子分區(qū),其中一個沒有,也存在一些差別

后續(xù)又測試了,見31個分區(qū),另外一個鍵31*12個分區(qū),同樣的數(shù)據(jù)量性能也不一樣....下降非常明顯....


所以LZ要創(chuàng)建那么多分區(qū),一勞永逸的事情還是別想了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP