锘??xml version="1.0" encoding="utf-8" standalone="yes"?>九九久久精品无码专区,久久久久久久久66精品片,久久毛片免费看一区二区三区http://www.shnenglu.com/cxiaojia/category/20232.html鍘氬痙 鍗氬 姹傜湡 鑷沖杽 The bright moon and breezezh-cnSat, 01 Dec 2012 20:11:32 GMTSat, 01 Dec 2012 20:11:32 GMT60NoSql鏁版嵁搴撳涔?fàn)姹囨?/title><link>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195875.html</link><dc:creator>C灝忓姞</dc:creator><author>C灝忓姞</author><pubDate>Sat, 01 Dec 2012 15:13:00 GMT</pubDate><guid>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195875.html</guid><wfw:comment>http://www.shnenglu.com/cxiaojia/comments/195875.html</wfw:comment><comments>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195875.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cxiaojia/comments/commentRss/195875.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cxiaojia/services/trackbacks/195875.html</trackback:ping><description><![CDATA[<span style="background-color: yellow;">MongoDB</span><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_7" ><br />8澶╁閫歁ongoDB——絎竴澶?鍩虹鍏ラ棬<br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_6" >8澶╁閫歁ongoDB——絎簩澶?緇嗚澧炲垹鏌ユ敼<br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_5" >8澶╁閫歁ongoDB——絎笁澶?緇嗚楂樼駭鎿嶄綔<br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_4" >8澶╁閫歁ongoDB——絎洓澶?绱㈠紩鎿嶄綔<br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_3" >8澶╁閫歁ongoDB——絎簲澶?涓諱粠澶嶅埗<br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_2" >8澶╁閫歁ongoDB——絎叚澶?鍒嗙墖鎶鏈?/a><br /><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_1" >8澶╁閫歁ongoDB——絎竷澶?榪愮淮鎶鏈?br /></a><a id="CategoryEntryList1_EntryStoryList_Entries_TitleUrl_0" >8澶╁閫歁ongoDB——絎叓澶?椹卞姩瀹炶返</a><img src ="http://www.shnenglu.com/cxiaojia/aggbug/195875.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cxiaojia/" target="_blank">C灝忓姞</a> 2012-12-01 23:13 <a href="http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195875.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>8縐峃osql鏁版嵁搴撶郴緇熷姣旓紙杞級(jí)http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195865.htmlC灝忓姞C灝忓姞Sat, 01 Dec 2012 09:12:00 GMThttp://www.shnenglu.com/cxiaojia/archive/2012/12/01/195865.htmlhttp://www.shnenglu.com/cxiaojia/comments/195865.htmlhttp://www.shnenglu.com/cxiaojia/archive/2012/12/01/195865.html#Feedback0http://www.shnenglu.com/cxiaojia/comments/commentRss/195865.htmlhttp://www.shnenglu.com/cxiaojia/services/trackbacks/195865.html闃呰鍏ㄦ枃

C灝忓姞 2012-12-01 17:12 鍙戣〃璇勮
]]>
Nosql鍏ラ棬鐭ヨ瘑錛堣漿錛?/title><link>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195864.html</link><dc:creator>C灝忓姞</dc:creator><author>C灝忓姞</author><pubDate>Sat, 01 Dec 2012 08:57:00 GMT</pubDate><guid>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195864.html</guid><wfw:comment>http://www.shnenglu.com/cxiaojia/comments/195864.html</wfw:comment><comments>http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195864.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cxiaojia/comments/commentRss/195864.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cxiaojia/services/trackbacks/195864.html</trackback:ping><description><![CDATA[<div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; ">1. NoSQL鍏跺疄鏄叧緋誨瀷鏁版嵁搴撶浉瀵瑰簲鐨勶紝鏄痭o relational 鍗抽潪鍏崇郴鍨嬫暟鎹簱錛泈eb2.0鐗瑰埆鏄竴浜涚敤鎴瘋闂噺姣旇緝澶х殑緗戠珯濡傦細(xì)www.taobao.com weibo.com baidu.com </p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; ">姣忕鐨勮闂噺鍙兘鏄笂涓囨(10K);浼犵粺鐨勫叧緋誨瀷鏁版嵁搴?mysql oracle 姣忕榪涜10K嬈℃暟鎹煡璇㈣繕鍙互鍕夊己搴斾粯錛屼絾鏄鏋滄槸姣忕10K嬈¤鍐欐暟鎹簱錛屽洜涓烘暟鎹簱鐨勬暟鎹兘鏄嵏杞界鐩樹(shù)腑錛屾墍浠ョ鐩業(yè)O涔熸槸鏀拺涓嶄綇姣忕10K鐨勮鍐欍?/p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; ">鍦╳eb鐨勬灦鏋勪腑錛屾暟鎹簱鏄渶闅捐繘琛屾í鍚戞墿灞曠殑(閫氳繃綆鍗曠殑娣誨姞鏈哄櫒鍜岀‖浠訛紝涔熷氨鏄坊鍔犱竴浜涙湇鍔¤妭鐐規(guī)潵鎻愰珮璐熻澆鍧囪 鑳藉姏)錛涘浜?*24灝忔椂鍦ㄧ嚎鐨勭綉绔欐潵璇達(dá)紝瀵瑰叧緋誨瀷鏁版嵁搴撹繘琛屽崌綰у拰鎵╁睍(鍒嗗竷寮忔墿灞?-鍒嗗簱鍒嗚〃)鏄潪甯哥棝鑻︾殑浜嬫儏錛屽線寰瑕佽繘琛屽仠鏈虹淮鎶わ紱浣嗚繖縐嶅www.taobao.com 鏉ヨ鏄潪甯鎬笐闄嬬殑浜嬫儏銆俒--鍙笉鍙互娣誨姞鍑犲彴鏈嶅姟鍣ㄧ劧鍚庢妸澶嶅埗錛岀劧鍚庤繘琛岃礋杞藉潎琛?-]銆?/p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; ">NoSQL 鏄噰鐢╧ey/value鐨勭粨鏋勬潵瀛樺偍鏁版嵁錛岃屼笖澶у鏁扮殑NoSQL閲囩敤鍐呭瓨鏉ュ瓨鍌ㄦ暟鎹紝涓孌墊椂闂村悗鎶婃暟鎹悓姝ュ埌紓佺洏?shù)腑锛涚斪兒庝娇鐢?strong>鍐呭瓨?shù)繚瀛?/strong>鏁版嵁寰堝ソ鍦拌В鍐充簡(jiǎn)<strong>楂樺茍鍙戣鍐?/strong>鐨勯棶棰橈紱鍏舵NoSQL鎻愪緵浜?jiǎn)鏍规嵁key鍊艱繘琛屾í鍚戝垎琛?姣斿錛氱敤鎴穒d錛屾瘡2000w鏁版嵁鏀懼埌涓鍙版暟鎹簱鏈嶅姟鍣ㄤ腑鐨勪竴寮犵敤鎴瘋〃涓?錛涘悓鏃跺疄鐜頒簡(jiǎn)涓諱粠鏁版嵁搴撲簰澶囷紝榪欐牱鍙互璁╂暟鎹簱鐨勫姩鎬佽縼縐誨彉寰楃畝鍗曪紝璁╂暟鎹簱鏈嶅姟鍣ㄧ殑妯悜鎵╁睍鍙樺緱瀹規(guī)槗浜?jiǎn)銆?/p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><br /></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; ">2. 鍒嗗竷寮忔暟鎹簱鐨凜AP鐞嗚</p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "> CAP鐞嗚<span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">鏄</span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">Consistency</span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">錛堜竴鑷存э級(jí)錛?/span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; "> Availability</span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">錛堝彲鐢ㄦэ級(jí)錛?/span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; "> partition tolerance</span><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">錛堝垎甯冿級(jí)涓夐儴鍒嗙郴緇燂紱鑰屼笖浠諱綍緋葷粺鍙細(xì)婊¤凍涓や釜錛屼笉浼?xì)鏈変恢M綍鐨勭郴緇熶細(xì)鍚屾椂婊¤凍榪欎笁涓潯浠訛紱鍦ㄤ紶緇熺殑鍏崇郴鍨嬫暟鎹簱涓槸寮鴻皟C 涓鑷存э紝浣嗘槸鍦ㄦ弧瓚抽珮鍙敤鎬?楂樺茍鍙戞椂鏁堢巼涓嶉珮)錛岄珮鎵╁睍鎬?鍒嗗竷寮忔暟鎹簱榪涜妯悜鎵╁睍)瀛樺湪涓瀹氱殑緙洪櫡銆備絾鏄疦oSQL鍦ㄨ繘琛岃璁$殑鏃跺欏氨鏄拡瀵瑰茍鍙戞搗閲忔暟鎹瓨鍌ㄧ殑鎯呭喌涓嬭繘琛岃璁$殑錛屽湪榪欑楂樺茍鍙戞搗閲忔暟鎹笅鏁版嵁涓鑷存у茍涓嶅儚閾惰閭f牱淇濇寔鏁版嵁鐨勫己涓鑷存э紝鎵浠oSQL·鏀懼純寮轟竴鑷存х殑榪芥眰錛屼粠鑰岃揪鍒版洿楂樼殑鍙敤鎬у拰鎵╁睍鎬э紝閫氳繃“<strong>楦藉發(fā)鍘熺悊</strong>”杈懼埌鏈緇堢殑涓鑷存с?/span></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; text-indent: 32px; ">鐜板湪鐨勬暟鎹簱緋葷粺鑲畾鏄悓涓涓椂鍒繪湁澶氫釜榪涚▼瀵規(guī)暟鎹簱榪涜璇誨啓鎿嶄綔錛屽亣璁劇幇鍦ㄦ湁3涓繘紼?A銆丅銆丆)瀵規(guī)暟鎹簱鐨勬煇琛ㄨ繘琛屾搷浣滐紝</span></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><ul style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">寮轟竴鑷存э細(xì)A鍐欏叆鐨勬暟鎹畑錛孊銆丆鍙互璇誨埌鏁版嵁x</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">寮變竴鑷存э細(xì)A鍐欏叆鐨勬暟鎹畑錛孊銆丆涓孌墊椂闂村唴璇諱笉鍒幫紝鏈鍚庝細(xì)璇誨埌</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">鏈緇堜竴鑷存э細(xì)鏄竴縐嶇壒孌婄殑涓鑷存э紝淇濊瘉鍦ㄤ竴孌墊椂闂村唴娌℃湁鏁版嵁鐨勬洿鏂幫紝浣嗘墍鏈夌殑榪斿洖閮芥槸鎶婃渶鏂扮殑鏁版嵁榪斿洖錛?--緙撳瓨鐨勬蹇碉紝涓孌墊椂闂村悗鎶婃暟鎹洿鏂板埌鏁版嵁搴擄紝杈懼埌鏈緇堜竴鑷存с?/span></li></ul><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">3. 鍝堝笇綆楁硶</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">(1). 鍝堝笇綆楁硶鐨勫熀鏈師鐞嗭細(xì)</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">     鍝堝笇綆楁硶鐨勬彁鍑哄拰搴旂敤鑳屾櫙錛屽浜庝竴涓簽澶х殑瀛楃涓叉暟緇刟rray錛岀粰浣犱竴涓瓧絎︿覆璁╀綘鍒ゆ柇瀹冩槸鍚﹀湪榪欎釜瀛楃涓叉暟緇勪腑騫舵壘鍒板畠錛屾渶濂界殑鍔炴硶灝辨槸鎶婅繖涓簽澶х殑瀛楃涓叉暟緇勬瀯寤烘垚涓涓搱甯岃〃錛岀劧鍚庡湪榪涜鏌ヨ鏄惁鏈夎繖涓瓧絎︿覆銆?/span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; "> (2).鏋勫緩hash table鐨勮繃紼嬶細(xì)涓鑸槸閲囩敤涓涓?2鐨勬暣鏁版潵浠h〃涓涓瓧絎︿覆錛岄鍏堣繖涓猘rray鐨勫瓧絎︿覆宸茬粡瀛樺湪鍐呭瓨鎴栬呯鐩樹(shù)腑錛屾垜浠鍋氱殑鍙槸鎸夌収涓瀹氱殑綆楁硶鎶婃瘡涓瓧絎︿覆鏄犲皠鍒頒竴涓?2浣嶇殑鏁存暟錛屾瘡涓猧nt鍗?涓瓧鑺傦紝鍦ㄥ瓧絎︿覆涓瘡涓瓧絎﹂兘鍗犱竴涓瓧鑺傦紱榪欐牱灝卞緩绔嬩簡(jiǎn)瀛楃涓蹭笌32浣嶆暣鏁扮殑鏄犲皠錛岀劧鍚庢牴鎹▼搴忓ぇ灝忚瀹氫竴涓猦ash table鐨凷ize(<strong>榪欎釜Size紜繚鎵鏈夌殑int % Size鐨勫兼槸鍞竴鐨?-鍙栨渶澶у煎嵆鍙?/strong>)錛岃繖涓妸鍒氭墠寰楀埌鐨勬墍鏈夊瓧絎︿覆瀵瑰簲鐨?2浣嶆暣鏁板榪欎釜Size榪涜鍙栨ā錛岃繖涓ā鍊煎氨鏄鏁存暟鍦╤ash table鐨勪綅緗紱榪欎釜浣嶇疆涓庢瘡涓涓瓧絎︿覆鍙堝緩绔嬩簡(jiǎn)涓涓槧灝勫叧緋伙紱榪欐牱璁╀綘鏌ヨ榪欎釜str鏄惁鍦╝rray涓紵</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><ul><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">棣栧厛錛屾槸鎶婅繖涓猻tr錛岀敤鐩稿悓鐨勫搱甯岀畻娉曡繘琛岀紪鐮?--->鏄犲皠鍒頒竴涓?2浣嶇殑int鍨嬫暟鎹?num</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">鐒跺悗錛屾妸榪欎釜num % Size 鑾峰彇姝ゅ瓧絎︿覆鍦╤ash table閲岄潰鐨勪綅緗紱</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">鐒跺悗錛屽垽鏂環(huán)ash table 姝や綅緗槸鍚﹀凡緇忔湁鏁版嵁鍗犵敤錛屽鏋滃凡緇忓崰鐢ㄨ鏄庡湪array閲岄潰鏈変竴涓瓧絎︿覆瀵瑰簲鐨?2浣嶆暣鏁頒笌str鐨?2浣嶆暣鏁扮浉鍚岋紝鍦ㄤ竴涓瓧絎︿覆瀵瑰簲鍞竴涓涓?2浣嶆暣鏁扮殑鍓嶆彁鏉′歡涓嬶紝灝辮鏄巃rray閲岄潰瀛樺湪瀛楃涓瞫tr銆?/span></li></ul><div><div bg_html"="" style="width: 687px; "><div><div><strong>[html]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">copy</a><div style="position: absolute; left: 520px; top: 1624px; width: 18px; height: 18px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_1" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="18" height="18" name="ZeroClipboardMovie_1" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=1&width=18&height=18" wmode="transparent"></div></div></div><ol start="1" style="border-width: initial; border-color: initial; "><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; "><span style="border-width: initial; border-color: initial; ">int GetHashTablePos(char *lpszString, SOMESTRUCTURE *lpTable, int nTableSize)  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">{ //lpszSring--瑕佹煡璇㈢殑瀛楃涓詫紱lpTable 鍝堝笇琛紱nTableSize鏄搱甯岃〃鐨凷ize  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">int <span style="border-width: initial; border-color: initial; color: red; ">nHash</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">HashString</span><span style="border-width: initial; border-color: initial; ">(lpszString), </span><span style="border-width: initial; border-color: initial; color: red; ">nHashPos</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">nHash</span><span style="border-width: initial; border-color: initial; "> % nTableSize;  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">if (lpTable[nHashPos].bExists && !strcmp(lpTable[nHashPos].pString, lpszString))  //鏃墮棿澶嶆潅搴︽槸O(1)  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  return nHashPos;  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">else  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  return -1; //Error value  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">}  </span></li></ol></div>(3).  涓婇潰鐨勫鐞嗘柟娉曟槸鍋囪涓涓瓧絎︿覆閫氳繃涓涓搱甯岀畻娉曞彧寰楀埌鍞竴涓涓猦ashcode(32涓篿nt鏁存暟)錛涗絾鏄鏋滃瓨鍦ㄤ袱涓暣鏁板湪鍚屼竴涓搱甯岀畻娉曞緱鍒板悓涓涓猦ashcode錛岄偅榪欎釜鏌ヨ灝變笉姝g‘鐨勶紝铏界劧榪欎釜鍙兘鎬ф瘮杈冨皬錛屼絾紜疄瀛樺湪榪欎釜椋庨櫓銆?/div><div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">閲囩敤鐨勮В鍐沖姙娉曟槸鐢ㄥ涓笉鍚岀殑鍝堝笇綆楁硶鏉ユ牎楠岋紝涓や釜str 鍦ㄤ笁涓笉鍚岀殑鍝堝笇綆楁硶寰楀埌鐨刪ashcode閮界浉鍚岀殑姒傜巼鏄細(xì)<span style="font-family: song, Verdana; line-height: 22px; ">1/18889465931478580854784錛涘彲浠ヨ涓烘槸OK鐨勩?/span></span></div><div><span style="font-family: song, Verdana; "></span><div bg_html"="" style="width: 687px; "><div><div><strong>[html]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">copy</a><div style="position: absolute; left: 520px; top: 2001px; width: 18px; height: 18px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_2" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="18" height="18" name="ZeroClipboardMovie_2" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=2&width=18&height=18" wmode="transparent"></div></div></div><ol start="1" style="border-width: initial; border-color: initial; "><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; "><span style="border-width: initial; border-color: initial; ">int GetHashTablePos(char *lpszString, MPQHASHTABLE *lpTable, int nTableSize)  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">{  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">const int <span style="border-width: initial; border-color: initial; color: red; ">HASH_OFFSET</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">0</span><span style="border-width: initial; border-color: initial; ">, </span><span style="border-width: initial; border-color: initial; color: red; ">HASH_A</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">1</span><span style="border-width: initial; border-color: initial; ">, </span><span style="border-width: initial; border-color: initial; color: red; ">HASH_B</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">2</span><span style="border-width: initial; border-color: initial; ">;  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">int <span style="border-width: initial; border-color: initial; color: red; ">nHash</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">HashString</span><span style="border-width: initial; border-color: initial; ">(lpszString, HASH_OFFSET);  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">int <span style="border-width: initial; border-color: initial; color: red; ">nHashA</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">HashString</span><span style="border-width: initial; border-color: initial; ">(lpszString, HASH_A);  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">int <span style="border-width: initial; border-color: initial; color: red; ">nHashB</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">HashString</span><span style="border-width: initial; border-color: initial; ">(lpszString, HASH_B);  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">int <span style="border-width: initial; border-color: initial; color: red; ">nHashStart</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">nHash</span><span style="border-width: initial; border-color: initial; "> % nTableSize, </span><span style="border-width: initial; border-color: initial; color: red; ">nHashPos</span><span style="border-width: initial; border-color: initial; "> = </span><span style="border-width: initial; border-color: initial; color: blue; ">nHashStart</span><span style="border-width: initial; border-color: initial; ">;  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">while (lpTable[nHashPos].bExists)  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">{  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  if (lpTable[nHashPos]<span style="border-width: initial; border-color: initial; color: red; ">.nHashA</span><span style="border-width: initial; border-color: initial; "> == nHashA && lpTable[nHashPos]</span><span style="border-width: initial; border-color: initial; color: red; ">.nHashB</span><span style="border-width: initial; border-color: initial; "> == nHashB)  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">   return nHashPos;  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  else  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">   <span style="border-width: initial; border-color: initial; color: red; ">nHashPos</span><span style="border-width: initial; border-color: initial; "> = (nHashPos + 1) % nTableSize;  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">  if (<span style="border-width: initial; border-color: initial; color: red; ">nHashPos</span><span style="border-width: initial; border-color: initial; "> == nHashStart)  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">   break;  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">}  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">return -1; //Error value  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">}  </span></li></ol></div><br />榪欐牱灝卞彲浠ヤ繚璇佷竾鏃犱竴澶變簡(jiǎn)錛?/div><div></div><div>(4). 甯歌鐨勫搱甯岀畻娉曪細(xì)MD5 SHA  SHA-1絳夐兘鏄父鐢ㄧ殑鍝堝笇綆楁硶錛岃屼笖浠栦滑閮藉睘浜庢販鍚堝搱甯岀畻娉曪紝闄や簡(jiǎn)娣峰悎鍝堝笇綆楁硶榪樻湁鍔犳硶銆佷箻娉曘侀櫎娉曠殑鍝堝笇綆楁硶錛?/div><div>鎵浠ワ紝鍦ㄦ瘮杈冧竴涓枃浠舵槸鍚﹀彂鐢熷彉鍖栫殑鏂規(guī)硶鍑轟簡(jiǎn)鍙互鐢ㄦ渶鍚庝慨鏀規(guī)椂闂存潵鍒ゆ柇錛屼篃鍙互鐢ㄥ叾鍝堝笇code鏉ユ瘮杈冿紝姣斿鐢∕D5鏉ユ瘮杈冿紝濡傛灉鍏禡D5閮藉彉鍖栦簡(jiǎn)鍒欐枃浠朵竴瀹氳淇敼浜?jiǎn)銆?br /></div></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; "><br /></span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">4. Tair 緙撳瓨?shù)篃鏄竴縐?鍩轟簬key/value鐨凬oSQL緇撴瀯寮鍙戠殑涓縐嶇紦瀛樻満鍒訛紝鍏跺疄璐ㄤ篃鏄疦oSQL鏁版嵁搴擄紝涓嶈繃鏄痥ey/value緇撴瀯鑰屼笖鏄敤鍐呭瓨鏉ュ瓨鍌ㄦ暟鎹紝鎵浠ョ敤鎶奣air鍙仛緙撳瓨銆?/span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; "> <a style="color: #336699; text-decoration: none; ">http://www.open-open.com/lib/view/open1324345273311.html</a>  <a style="color: #336699; text-decoration: none; ">鐐瑰嚮鎵撳紑閾炬帴</a><br /></span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; "><br /></span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">5. 鍏崇郴鍨嬫暟鎹簱鐨勪簨鍔?ACID)</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">(1). 浜嬪姟(Transaction)錛歍ransaction鏄闂茍鍙兘鏇存柊鏁版嵁搴撲腑鍚勭鏁版嵁欏圭殑涓涓▼搴忔墽琛屽崟鍏?unit)錛屼簨鍔′竴鑸敱楂樼駭鏁版嵁璇█(C++ Java SQL)絳夊啓鐨勭敤鎴風(fēng)▼搴忓紩璧風(fēng)殑錛屽茍鐢╞egin transaction----end transaction 鏉ョ晫瀹氫竴涓畬鏁寸殑浜嬪姟</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><div bg_html"="" style="width: 687px; "><div><div><strong>[html]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">copy</a><div style="position: absolute; left: 520px; top: 2832px; width: 18px; height: 18px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_3" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="18" height="18" name="ZeroClipboardMovie_3" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=3&width=18&height=18" wmode="transparent"></div></div></div><ol start="1" style="border-width: initial; border-color: initial; "><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; "><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; "><</span><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; ">begin</span><span style="border-width: initial; border-color: initial; "> transaction</span><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; ">></span><span style="border-width: initial; border-color: initial; ">  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">****  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">****  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">****  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; "><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; "></</span><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; ">end</span><span style="border-width: initial; border-color: initial; "> transaction</span><span style="border-width: initial; border-color: initial; color: #993300; font-weight: bold; ">></span><span style="border-width: initial; border-color: initial; ">  </span></span></li></ol></div>涓涓畬鏁寸殑浜嬪姟鐢?span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">begin transaction----end transaction  閲岄潰鐨勬墍鏈夋搷浣滅粍鎴愶紱鍦ㄥ叧緋誨瀷鏁版嵁搴撲腑涓涓簨鍔″彲浠ユ槸涓鏉QL璇彞鎴栦竴緇凷QL璇彞鎴栬呮槸涓涓▼搴忥紱浜嬪姟鏄茍鍙戝拰鍥炴粴鐨勫熀鏈崟浣嶃?/span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">(2). 浜嬪姟鐨凙CID灞炴э細(xì)</span></div><div style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><ul><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">Atomicity(鍘熷瓙鎬?錛氫竴涓簨鍔℃槸涓涓笉鍙垎鍓茬殑瀹屾暣鍗曞厓錛屼竴涓猼ransaction閲岄潰鐨勬墍鏈夋搷浣滆涔堥兘鍋氬畬錛岃涔堥兘涓嶅仛錛涘綋涓棿涓涓搷浣滃け璐ユ妸鎵鏈夊凡緇忓仛鐨勬搷浣滈兘鍥炴粴錛?/span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">Consistency(涓鑷存?錛氭暟鎹簱鍦ㄤ竴涓簨鍔″紑濮嬪墠鏄竴鑷存х殑錛屽湪榪欎釜浜嬪姟鎵ц瀹屾瘯鍚庝粛鐒舵槸涓鑷存х殑錛涘彧鏄粠涓涓竴鑷存х姸鎬佸埌鍙︿竴涓竴鑷存х姸鎬侊紱浣嗛兘鏄竴鑷存х殑</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">Isolation(闅旂鎬?錛氫竴涓簨鍔$殑鎵ц涓嶈兘琚叾浠栦簨鍔℃墍鎵撴壈錛屽嵆涓涓簨鍔″唴閮ㄦ搷浣滃強(qiáng)浣跨敤鐨勬暟鎹騫跺彂鐨勪簨鍔℃槸闅旂鐨勶紝<strong>騫跺彂鎵ц鐨勪簨鍔′箣闂翠簰鐩鎬笉騫叉壈</strong>(<strong>涓嶇悊瑙?</strong>!!</span></li><li><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">Durablity(鎸佷箙鎬?錛氫篃灝辨案涔呮?Permanence)錛屽嵆涓涓簨鍔′竴鏃︽墽琛屽畬姣曪紝鍒欏畠瀵規(guī)暟鎹簱鐨勬洿鏂版槸鎸佷箙鎬х殑錛屽嵆涓嶅彈鍏朵粬鎿嶄綔鐨勫獎(jiǎng)鍝嶏紱涔熷氨鏄簨鍔′慨鏀逛簡(jiǎn)鏁版嵁搴撲簡(jiǎn)</span></li></ul><div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; ">榪欎釜ACID鐨勫睘鎬ф槸鍏崇郴鍨嬫暟鎹簱(DBMS)闈炲父閲嶈鐨勫睘鎬э紝鍦ㄦ墽琛屾暟鎹簱鎿嶄綔鏃跺繀欏繪弧瓚矨CID灞炴э紝鍏朵腑AI鏄垜浠紪紼嬩腑瑕佹敞鎰忕殑鍦版柟銆?/span></div></div></div><img src ="http://www.shnenglu.com/cxiaojia/aggbug/195864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cxiaojia/" target="_blank">C灝忓姞</a> 2012-12-01 16:57 <a href="http://www.shnenglu.com/cxiaojia/archive/2012/12/01/195864.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.shedan.com.cn" target="_blank">国产精品99久久久久久猫咪</a>| <a href="http://www.dyph.net.cn" target="_blank">午夜精品久久久久久影视777</a>| <a href="http://www.addlife.cn" target="_blank">综合久久一区二区三区</a>| <a href="http://www.fridc.cn" target="_blank">久久99久久无码毛片一区二区</a>| <a href="http://www.impark.cn" target="_blank">99久久无色码中文字幕</a>| <a href="http://www.idhm.cn" target="_blank">久久精品中文闷骚内射</a>| <a href="http://www.4527.com.cn" target="_blank">欧美黑人激情性久久</a>| <a href="http://www.udhv.cn" target="_blank">人妻精品久久久久中文字幕一冢本</a>| <a href="http://www.kingvit.com.cn" target="_blank">国产ww久久久久久久久久</a>| <a href="http://www.shinehall.cn" target="_blank">久久精品国产精品青草app</a>| <a href="http://www.dripnews.cn" target="_blank">久久精品www人人爽人人</a>| <a href="http://www.yunshanhong.cn" target="_blank">日韩精品久久久久久久电影蜜臀 </a>| <a href="http://www.52yydy.cn" target="_blank">国产精品免费久久久久电影网</a>| <a href="http://www.gzjrbs.cn" target="_blank">狠狠色丁香久久婷婷综</a>| <a href="http://www.ganzhoupei.cn" target="_blank">99国产精品久久久久久久成人热</a>| <a href="http://www.51saer.cn" target="_blank">久久精品国产亚洲av麻豆色欲</a>| <a href="http://www.6talent.cn" target="_blank">久久99亚洲网美利坚合众国</a>| <a href="http://www.020rj.cn" target="_blank">.精品久久久麻豆国产精品</a>| <a href="http://www.mxylzc.cn" target="_blank">九九久久99综合一区二区</a>| <a href="http://www.p8595.cn" target="_blank">国产精品青草久久久久福利99</a>| <a href="http://www.wushuichulisb.cn" target="_blank">久久综合久久综合九色</a>| <a href="http://www.zjyffm.cn" target="_blank">国产一区二区三精品久久久无广告</a>| <a href="http://www.hoay.com.cn" target="_blank">激情综合色综合久久综合</a>| <a href="http://www.jobs0593.cn" target="_blank">久久综合色之久久综合</a>| <a href="http://www.pingpangq.cn" target="_blank">一本色综合网久久</a>| <a href="http://www.ningxue520.cn" target="_blank">成人久久精品一区二区三区</a>| <a href="http://www.ljvs.cn" target="_blank">国产免费福利体检区久久</a>| <a href="http://www.shuntai.net.cn" target="_blank">日韩久久久久中文字幕人妻</a>| <a href="http://www.33k4.cn" target="_blank">国产成人久久精品一区二区三区</a>| <a href="http://www.kapatina.cn" target="_blank">久久综合狠狠综合久久综合88</a>| <a href="http://www.jijijian.cn" target="_blank">国产精品美女久久久久网</a>| <a href="http://www.6r9q.cn" target="_blank">久久精品人妻一区二区三区</a>| <a href="http://www.nutiao.cn" target="_blank">久久久久亚洲av成人网人人软件</a>| <a href="http://www.jinlvyu1.cn" target="_blank">久久婷婷五月综合国产尤物app </a>| <a href="http://www.peizis.cn" target="_blank">青青热久久综合网伊人</a>| <a href="http://www.monggo.cn" target="_blank">久久婷婷五月综合色99啪ak</a>| <a href="http://www.ywxcj.cn" target="_blank">亚洲欧美成人综合久久久 </a>| <a href="http://www.9503miwang.cn" target="_blank">少妇熟女久久综合网色欲</a>| <a href="http://www.mz025.cn" target="_blank">高清免费久久午夜精品</a>| <a href="http://www.chaohu8.cn" target="_blank">久久亚洲电影</a>| <a href="http://www.dnn.org.cn" target="_blank">久久综合久久综合久久综合</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>