왜 Database 를 사용하는가?
번역자 : 정재익
원문 : http://www.ca.postgresql.org/docs/momjian/writing_apps/node1.html
Database 를 기반으로 하는 응용프로그램들은 database 를 대단히 특성있게 사용한다. 그들은 응용프로그램에서의 입력, 처리 그리고 출력 모두에 사용한다. 그들은 database 를 응용프로그램에서 이용할 정보를 저장하고, 그리고 다른 응용프로그램과 공유하기 위해 사용한다.
요약하여 말하면 응용프로그램들은 자신들만의 :
. 입력
. 처리
. 출력
을 가지며, 데이터베이스의 종류에 따라서 :
. 영구저장장치
. 정보공유
등으로 나눌수 있다.
예를들면, 응용프로그램이 일단 그들의 query 를 commit 시키면, 다른 사용자들은 그 내용을 볼수 있다. 마찬가지로 응용 프로그램이 종료된 후에라도 정보는 데이터베이스 내부에 저장되어 남아 있게 된다.
물론 데이터에비스가 꼭 정보를 영원히 저장하고 공유할 필요는 없다. 정보라고 하는 것은 단순한 파일 내부에 영원히 저장될 수도 있고, 응용 프로그램간에 정보를 공유하기 위해서 공유메모리 공간 내에 저장할 수도 있다. 데이터베이스는 이들은 아주 쉽게 가능하게 만든다. 그리고 프로그램머의 응용프로그램 작업을 더 쉽게 마들어 주는 transaction, indexing, join, aggregates 그리고 테이블 구조 등이 가능하다.
Why Use a Database?
Database-backed applications use databases in very specific ways. They do all the input, processing, and display in the application. They use the database to store information that must be kept after the application exits and information that must be shared with other applications. In summary, the application does its own:
. Input
. Processing
. Display
and relies on the database for:
. Permanent storage
. Sharing information
For example, once an application commits a query, all users can see its changes. Also, when the application exits, all information remains stored in the database.
Of course, a database is not required to permanently store or share information. Information can be stored permanently in flat files and a shared memory area can be used to share information among applications. However, databases make this much easier, and have features like transactions, indexing, joins, aggregates, and a table structure that makes the job of the application programmer easier.
|