Ray's playground

 
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 56 下一页

2010年10月14日

Replication(Chapter 9 of MongoDB The Definitive Guild)

摘要: A replica set is basically a master-slave cluster with automatic failover. The biggestdifference between a master-slave cluster and a replica set is that a replica set does nothave a single master: on... 阅读全文

posted @ 2010-10-14 21:18 Ray Z 阅读(166) 评论(0) 推荐(0) 编辑

Administration(Chapter 8 of MongoDB The Definitive Guild)

摘要: MongoDB supports reading configuration information from a file. This can be usefulif you have a large set of options you want to use or are automating the task ofstarting up MongoDB. To tell the serve... 阅读全文

posted @ 2010-10-14 12:52 Ray Z 阅读(133) 评论(0) 推荐(0) 编辑

2010年10月13日

Advanced Topics(Chapter 7 of MongoDB The Definitive Guild)

摘要: In addition to these basic operations, MongoDB supports a wide rangeof advanced operations that are implemented as commands. Commands implement allof the functionality that doesn’t fit neatly in... 阅读全文

posted @ 2010-10-13 23:02 Ray Z 阅读(164) 评论(0) 推荐(0) 编辑

2010年10月12日

Aggregation(Chapter 6 of MongoDB The Definitive Guild)

摘要: MapReduce is the Uzi of aggregation tools. Everything described with count, distinct, and group can be done with MapReduce, and more. It is a method of aggregation that can be easily parallelized acro... 阅读全文

posted @ 2010-10-12 21:17 Ray Z 阅读(210) 评论(0) 推荐(0) 编辑

Indexing(Chapter 5 of MongoDB The Definitive Guild)

摘要: explain is an incredibly handy tool that will give you lots of information about your queries. You can run it on any query by tacking it on to a cursor. explain returns a document, not the cursor itse... 阅读全文

posted @ 2010-10-12 20:28 Ray Z 阅读(163) 评论(0) 推荐(0) 编辑

Introducing the iPhone SDK(Chapter 1 of The iPhone™ Developer’s Cookbook)

摘要: The main.m file has two jobs. First, it creates a primary autorelease pool for your application.Second, it invokes the application event loop.These two elements provide critical elementsto get your ap... 阅读全文

posted @ 2010-10-12 12:35 Ray Z 阅读(215) 评论(0) 推荐(0) 编辑

2010年10月1日

Querying(Chapter 4 of MongoDB The Definitive Guild)

摘要: Sometimes, you do not need all of the key/value pairs in a document returned. If thisis the case, you can pass a second argument to find (or findOne) specifying the keys youwant. This reduces both the... 阅读全文

posted @ 2010-10-01 11:16 Ray Z 阅读(186) 评论(0) 推荐(0) 编辑

Creating, Updating, and Deleting Documents(Chapter 3 of MongoDB The Definitive Guild)

摘要: "$set" sets the value of a key. If the key does not yet exist, it will be created. This canbe handy for updating schema or adding user-defined keys.  The "$inc" modifier can be used to change the valu... 阅读全文

posted @ 2010-10-01 09:16 Ray Z 阅读(120) 评论(0) 推荐(0) 编辑

2010年9月23日

Setting the Foundations(Chapter 1 of CSS Mastery Advanced Web Standards Solutions)

摘要: Designed for humans first and machines second, microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microfor... 阅读全文

posted @ 2010-09-23 17:29 Ray Z 阅读(175) 评论(0) 推荐(0) 编辑

2010年9月21日

Data Structures(Chapter 3 of The Algorithm Design Manual)

摘要: Rabin–Karp string search algorithmfunction RabinKarp(string s[1..n], string sub[1..m])hsub := hash(sub[1..m]); hs := hash(s[1..m])for i from 1 to n-m+1if hs = hsubif s[i..i+m-1] = subreturn ihs ... 阅读全文

posted @ 2010-09-21 12:56 Ray Z 阅读(2060) 评论(0) 推荐(0) 编辑

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 56 下一页

导航