RDBMS : SQL을 사용해 데이터의 조회, 추가, 삭제 등의 작업 진행
NoSQL
: SQL을 사용하지 않음. 매우 최적화된 저장공간이라는것, key값으로 데이어를 저장하는것이 RDBMS와의 차이점. DB별 개별문법을 가짐.
메모리를 기반으로 하는 DB인만큼 빠름.
Mongo DB
: JSON형태의 Document 저장.
- Schema를 비정의 -> collection에(RDBMS의 table) 대한 정의가 불필요'
- JSON형식의 쿼리 작성
- _id 필드가 Primary Key역할을 함.
#RDBMS
SELECT * FROM table_name WHERE column1 = 'data'and column2 < 10;
#Mongo DB
db.talbe_name.find({$and: [{column1: 'data'}, {column2: {$lt: 10}}]})
MongoDB Documentation
Atlas MongoDB Atlas is a multi-cloud developer data platform that provides the database and data services that accelerate and simplify how you build with data. Available on AWS, Google Cloud, and Microsoft Azure. MongoDB Database Manual The official manual
www.mongodb.com
Redis
: 데이터의 저장 및 접근으로인해 rw작업이 다른 DBMS에 비헤 빠름. 이로 인해 임시데이터 캐싱에 주로 사용
Commands
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker
redis.io
Couch DB
: JSON 형태의 Document 저장. 웹 기반 DBMS. REST API형식의 요청을 처리.
1. API Reference — Apache CouchDB® 3.3 Documentation
© Copyright 2023, Apache Software Foundation. CouchDB® is a registered trademark of the Apache Software Foundation. Revision c742d9c7.
docs.couchdb.org
'프로그래밍 및 코딩 > PHP' 카테고리의 다른 글
서버시간 가져오기 (0) | 2023.06.14 |
---|---|
웹 개발 프로젝트_파일 업로드 취약점 Secure coding (0) | 2023.06.03 |
케빈 미트닉 해킹기법 (0) | 2023.05.30 |
게시판 만들기_파일 다운로드 (0) | 2023.05.30 |
게시판 만들기_게시판 수정 (0) | 2023.05.30 |