原创 ZooKeeper Overview

Design Goals ZooKeeper allows distributed processes to coordinate with each other through a shared hierarchal namesp

原创 Security and Authentication

Mongo Security You authenticatea username and password (加密方式) in the context ofa particular database.  Once authent

原创 Shard Architechure

Architectural Overview   Shards In a production situation, each shard will consist of multiple servers to ensure a

原创 類加載器

java.lang.Class 代表了Java應用程序在運行時所加載的類或接口,當一個類被加載時,JVM就自動爲器生成一個Class對象。 可以通過對象的getClass()方法獲得Class實例,也可以通過類的靜態常量class獲得該C

原创 Mongo 內存映射與日誌

Memory Map 對文件的操作較快 把文件的指定內容映射到內存空間中,普通文件被映射到進程地址空間後,進程可以像訪問普通內存一樣對文件進行訪問,不必再調用read(),write()等操作。 #include<sys/mman.h

原创 Index

Basics  Formally speaking, these indexes are implemented as "B-Tree" indexes. In the shell, you can create an index

原创 MongoDB數據文件內部結構 (MongoDB Storage Internal)

源文章鏈接 http://blog.nosqlfan.com/html/3515.html 以下我做了一點註釋 MongoDB數據文件內部結構 作者:nosqlfan on 星期一, 十二月 5, 2011 · 7條評論 【閱讀

原创 Object IDs

Object IDs Documents in MongoDB required a key, _id, which uniquely identifies them.(只有_id建立索引之後,各個doc的_id纔會不同,否

原创 Misc

Maximum Document Size MongoDB limits the data size of individual BSON objects/documents. At the time of this writing

原创 MutiKeys

Introduction Mongo provides some functionality that is useful for text search and tagging. Multikeys (Indexing Value

原创 JS Injection

Javascript injection is a fun technique that allows you to change a websites content without leaving the site, reloa

原创 JSON

JSON簡介: JSON(JavaScript Object Notation) 是一種輕量級的數據交換格式,可以把JSON的結構理解成無序的、可嵌套(指value可以再嵌套一層key-value)的key-value鍵值對集合,

原创 GridFS

GridFS Specification When to use GridFS This page is under construction When to use GridFS Lots of files

原创 Class

/** * 類初始化順序: * <p> * 1、超類靜態變量;超類靜態初始化塊。--按代碼排列順序;<br> * 2、子類靜態變量;子類靜態初始化塊。--按代碼排列順序; <br> * 3、所有的成員變量

原创 Java基本操作符與數據類型

13 變量類型 :運算時,補碼運算,運算器不知道符號位,自動溢出      long 64bit 9964L(l)      double 64bit 123.13D(d) 或e3      float   1123.f      dou