Embedded DB

Berkely DB

macro 2010. 3. 23. 16:22
반응형

===== 장점 =====
  * since Berkeley DB runs in process, there are fewer copies required to move the data from disk into the application’s data structure. In multi-process or networked database architecture, every process boundary requires at least one new copy of the data. Berkeley DB can move data from the storage device into the buffer cache, and then make a single copy into the application’s data structure. By avoiding context switches and minimizing copies, Berkeley DB gets outstanding performance on commodity hardware.
  * performance tests of Berkeley DB published in a recent white paper1 documented 90,774 sequential inserts per second, using transactions, in a single thread of control.
  * SQL을 사용하지 않으므로, 저장하는 자료형이 어플에서 사용하는 구조체등을 그대로 사용할 수 있다.

===== 단점 =====
  * RDBMS가 아니다.
  * SQL지원이 안되므로, api를 가지고 직접 기능 구현해야 함.
  * 따라서 RDBMS가 아니므로 쿼리가 어렵다.

===== 메모리 디비로 사용 =====

  * 설정에서 메모리 디비로 생성할 수 있다.
  * [[http://www.nicklib.com/library/berkeley_db/ref/program/ram.html]]

반응형