7. 物件關聯式資料庫
POSTGRESQL
• 開放原始碼
• 完全免費不限使用用途
• 支援已知各應用平台
Limit Value
Maximum Database Size Unlimited
Maximum Table Size 32 TB
Maximum Row Size 1.6 TB
Maximum Field Size 1 GB
Maximum Rows per Table Unlimited
250 - 1600 depending on column
Maximum Columns per Table
types
Maximum Indexes per Table 77 7
12. 物件關聯式資料庫
NEO4J
• http://neo4j.org/
• Neo4j is a high-performance, NOSQL graph
database with all the features of a mature and
robust database.
• 開放原始碼, GPLv3 Community edition
• 不同授權差異
• Neo4j Community, a high performance, fully ACID
transactional graph database – licensed under the GPL
• Neo4j Advanced, adding advanced monitoring – licensed
under the AGPL
• Neo4j Enterprise, adding online backup and High
Availability clustering – licensed under AGPL
12
13. 物件關聯式資料庫
NEO4J
• graph-oriented model
• storing data in the nodes and relationships of a
graph.
• 利用資料結構的設計,建立的資料模型。
13
14. 物件關聯式資料庫
DB4O
• http://www.db4o.com/
• 開放原始碼,Free Version is GPL license
• 若要商業用途,建議購買商業授權。
• 強力支援Java 與 .Net平台。
• 真正物件導向關聯式資料庫
14
17. FILE-BASED DB
JAVADB
• http://www.oracle.com/technetwork/java/javadb/
overview/index.html
• Sun Java SDK/JRE 內建
• 採用open source Apache Derby 100%所開發
• Java DB 10.5.3.0, based on Apache Derby 10.5.3.0
• It is fully transactional, secure, easy-to-use,
standards-based —SQL, JDBC API, and Java EE —
yet small, only 2.5 MB.
• Free under the Apache license.
• Portable and 100% Java, CDC, SQL, and JDBC
compliant.
17
18. FILE-BASED DB
APACHE DERBY
• http://db.apache.org/derby/
• Apache License, Version 2.0
• IBM 捐贈
• 純Java 設計開發
• 約 2.6MB大小
• 運作模式
• 一般Clinet – Server
• 嵌入式
• In-Memory
• 符合ANSI 89
• 不需安裝直接使用
18
19. FILE-BASED DB
HYPERSQL
• http://hsqldb.org/
• 100% Java Database
• fully multithreaded
• full SQL-1992 Advanced Level and SQL:2008 core
language features plus an extensive list of SQL:2008
optional features and many extensions.
• over 6 years
• 350K jar size
19
20. FILE-BASED DB
HYPERSQL
• 商業版本
• http://www.hxsql.com/
• HyperXtremeSQL has been developed in parallel with the
open-source HyperSQL (HSQLDB) engine.
20
21. FILE-BASED DB
H2
• http://www.h2database.com
• 運作模式
• Embedded and server modes; in-memory databases
• Small footprint: around 1 MB jar file size
• Browser based Console application
• 支援全文搜尋
21
22. FILE-BASED DB
H2
H2 Derby HSQLDB MySQL PostgreSQL
Pure Java Yes Yes Yes No No
Memory Mode Yes Yes Yes No No
Encrypted Yes Yes Yes No No
Database
ODBC Driver Yes No No Yes Yes
Fulltext Search Yes No No Yes Yes
Multi Version Yes No Yes Yes Yes
Concurrency
Footprint (jar/dll ~1 MB ~2 MB ~1 MB ~4 MB ~6 MB
size)
22
31. NOSQL DB
MONGODB/APACHE COUCHDB
MySQL term Mongo term
database database
table collection
index index
row BSON document
column BSON field
join embedding and linking
primary key _id field
31
32. NOSQL DB
MONGODB/APACHE COUCHDB
SQL Statement Mongo Statement
CREATE TABLE USERS (a Number, b Number) implicit; can also be
done explicitly withdb.createCollection("mycoll")
ALTER TABLE users ADD ... implicit
INSERT INTO USERS VALUES(3,5) db.users.insert({a:3,b:5})
SELECT a,b FROM users db.users.find({}, {a:1,b:1})
SELECT * FROM users db.users.find()
SELECT * FROM users WHERE age=33 db.users.find({age:33})
32
33. NOSQL DB
AMAZON SIMPLEDB
• http://aws.amazon.com/simpledb/
• Amazon SimpleDB is a highly available, flexible, and
scalable non-relational data store that offloads the
work of database administration. Developers simply
store and query data items via web services
requests, and Amazon SimpleDB does the rest.
33
34. NOSQL DB
AMAZON SIMPLEDB
• Use CreateDomain, DeleteDomain, ListDomains,
DomainMetadata to create and manage query
domains
• Use Put, Batch Put, & Delete to create and manage
the data set within each query domain
• 與其他Amazon服務容易整合
• 按需取價
34
35. NOSQL DB
AMAZON SIMPLEDB
• 免費版限制 每個月上限
• 25 SimpleDB Machine Hours
• 1 GB of Storage for free
35