๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ(90)
-
Understanding Database - SQL ๊ธฐ์ด ์ด์ ๋ฆฌ
SQL vs NoSQL SQL์ ํ ์ด๋ธ ํ์, NoSQL์ ์ ํํ๋์ง ์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์. SQL์ ๊ธฐ๋ณธ ๊ฐ๋ ์ธ ํ ์ด๋ธ, ๊ด๊ณ์ ๊ฐ๋ ์ NoSQL์์๋ ์ฝ๋ ์ , ๊ทธ๋ฆฌ๊ณ ์ฐธ์กฐ ํน์ ๋ด์ฅํ์ ๊ฐ๋ ์ ๋๋ก ์๊ฐํ ์ ์๊ฒ ๋ค. SQL์ ์ ํํ๋์ด ์์ด์ ๋จธ๋ฆฟ์์ ์ฌ์ค ๊ตฌ๋๋ฅผ ๊ทธ๋ฆฌ๋ ๊ฒ์ด ์๋์ ์ผ๋ก ํธํ๋ค. ๋ฐ๋ฉด, NoSQL์ ๊ตฌ์กฐ๊ฐ ์ ํํ๋์ด ์์ง ์์์ ๋จธ๋ฆฟ์์ ๊ตฌ์กฐ๋ฅผ ๋ช ํํ๊ฒ ๊ทธ๋ฆฌ๊ธฐ๊ฐ ์ฒ์์ ์ฝ์ง ์๋ค. ํ์ง๋ง ๊ทธ๋ก ์ธํ ์ฅ์ ์ ํ์ฅ์ฑ์ ์๋ค๊ณ ํ ์ ์๊ฒ ๋ค. ์๋ฅผ ๋ค์ด SQL์์๋ ๋ฐ์ดํฐ๋ฅผ ์ ํด์ง ํ ์ด๋ธ์ ํํ ์์ ๋ฃ์ด์ผ๋ง ํ์ง๋ง NoSQL์์๋ ๊ทธ๋ฐ ๋ถ๋ถ์ ์ ์ฝ์กฐ๊ฑด์ผ๋ก ์ถ๊ฐํ๊ฑฐ๋ ํน์ ์ ์ฝ ์กฐ๊ฑด ์์ด ๋ค์ํ ํํ์ ๋ฐ์ดํฐ๋ฅผ ํ๋์ ์ฝ๋ ์ (SQL๋ก ์น๋ฉด ํ๋์ ํ ์ด๋ธ)์ ๋ชฝ๋ ๊ทธ๋ฆฌ ์ ์ฅํ ์ ์๋ค๋ ์ฅ..
2023.01.23 -
Machine Learning and Stats 2 - Univariate Exploratory Data Analysis
Exploratory Data Analysis(EDA) is always a starting point for Data analysis, and it is about getting an intuitive understanding of the data. First, you need to decide what to test, and then you can use statistics to test out what the data delivers. Data Quality: Where does the data come from, and how accurate are they? The below table summarises the star rating of data quality suggested by David..
2023.01.17 -
Understanding Database 11 - Database Programming Techniques
Database Application system # 3-Tier Architecture Client: GUI, Web interface, display of info [i.e. HTML, CSS, JS] Application server or Web server: Application programs, web pages - stores biz rules, implement logic [i.e. divided by NodeJS, Python, Java, PHP, C; host language + SQL, NoSQL; Data sub-language] Database server: Database Management System - hosts DBMS (accept and process queries an..
2023.01.16 -
Understanding Database 10 - Data modelling with MongoDB
Modelling for RDBMS 1. Define schema 2. develop the application and DB queries -> One correct solution, no revision/Data duplicates /Usage makes schema demoralised(Performace dropping) Modelling for MongoDB 1. Develop and define the data model 2. re-define data model 3. Improve the application 4. improve the data model 5. repeat cycle 3 and 4 -> Multiple design options/design for usage patterns/..
2023.01.16 -
Understanding Database 9 - Distributed Database Systems(DDB)
Data Systems : combines different data storage technologies : caches, indexes and data in sync with application code : API(application programming interface) to hide architectural complexity : There are three ways to deal with requests in this figure, 1. In-memory cache 2. Primary database 3. Full-text index Before checking DB, check the cache to see if the data is cached. If there is no cache, ..
2023.01.16 -
Understanding Database 8 - NoSQL + Python Basic
PyMongo MongoDB Client-side JSON(Python) Python App, PyMongo Driver NoSQL BSON(MongoDB) Install and Use PyMonggo + DNSPython(to connect MongoDB Atlas) python -m pip install pymongo python -m pip install dnspython import pymongo from pymongo import MongoClient conn_str="mongodb+srv"://:@.mongodb.net/myFristDatabase" client = MongoClient(conn_str, serverSelectionTimeoutMs=5000) try: print(client.s..
2023.01.16 -
Understanding database 7 - NoSQL
NoSQL (Not only SQL, Non-SQL) Categories of NoSQL Systems Key-Value based NoSQL: Riak, Redis, Scalaris, Amazon DynamoDB Document-based NoSQL: MongoDB, CouchDB, OrientDB Column-base NoSQL: Google BigTable, Cassandra, Hbase, Amazon DynamoDB, Graph-based NoSQL: Neo4J, InfoGrid, FlockDB ACID Principle: RDBMS Gold Standard! Atomicity: Transactions are completely done or not done at all. Consistency: ..
2023.01.16 -
๋ ๋ฌ ๋ง์ ์๊ตญ ๋ํ์ ํผ์ ์ค๋นํ๊ธฐ (๋ง 34์ธ, ๋ฐ๋ ค๊ฒฌ๊ณผ ํจ๊ป ์ ํ๊ฐ๊ธฐ)
์ฒ์ ์ ํ์ ๊ฐ์ผ๊ฒ ๋ค๋ ๋ง์์ ๋จน๊ณ ์ ํํ๊ฒ ๋ ๋ฌ ๋ค์ ๋๋ ์๊ตญ์ผ๋ก ์ถ๋ฐํ๋ค. ์ฒซ ์์์ 7์ ์ด, ๊ทธ๋ฆฌ๊ณ ๋ด๊ฐ ํ๊ตญ์ ๋ ๋ ๊ฒ 8์ 31์ผ์ด๋๊น ์ ํํ๊ฒ ๋ ๋ฌ. (๋ฌผ๋ก ์ค๊ฐ์ ํ๋ฆฌ๋ฅผ ๋ค๋ ์ง๋ง) ๋ํ์์ ๊ฐ๊ณ ์ถ๋ค๋ ๋ง์์ ์ค๋๋๋ก ์์๋ค. ๋ค๋ง, ๊ทธ ๋งํผ์ ์๊ฐ๋์ ๋์ ์ ๋ฒ๋ฉด์ ๊ณต๋ถ๋ง ํ๋ค๊ฐ ๊ฒฐ๊ตญ ์ผ๋ ๋ค ๋ด ๋ฏธ๋๊ฐ ๋ณด์ฅ๋ ๊น ๋ผ๋ ๋ถํ์ค์ฑ ๋๋ฌธ์๋ ๋๋ ์ ๋ป ๋ง์๋จน๊ธฐ๋ง ํ๋ ์ผ์ ์๋ํ์ง ๋ชปํ๋ค. ๊ทธ๋ ๊ฒ ์๊ฐ์ ํ๋ฌ ํ๋ ๋ค. ์ฒ์ ๋ํ์์ ๊ฐ๊ณ ์ถ๋จ ์๊ฐ์ ํ๋ 20๋์์ ์ด๋ ๋ง ํ์ฉ 30๋ ์ค๋ฐ์ด ๋์ด๋ฒ๋ฆฐ ๋. 20๋ ๋๋ ๋์ด ์์๊ณ 30๋๊ฐ ๋๋ ์์ ํ ์ถ์ ๋ด๋ ค๋๊ณ ๋ถ์์ ์ ์ ํํ๊ธฐ๊ฐ ๋๋ ค์ ๋ค. ๊ทธ๋ผ์๋ ๋ถ๊ตฌํ๊ณ ๊ณต๋ถํ๊ณ ์ถ๋ค๋ ์์ฌ์ ๊ณ์ ๋ด๋ ค ๋์ง ๋ชปํ๋ค. ์ธ๊ฐ์ ์ฐพ์๋ฃ๊ณ ์๊ฒฉ์ฆ ..
2023.01.15 -
Understanding database 6 - Normalization
A systematic analysis of a schema to Eliminate redundancy Eliminate data modification problems Simplify queries on the DB possibly) improve efficiency Problems with INSERTING - If there are columns which doesn't include data: You have to fill them up with NULL, which is not recommended. (waste of memory and inefficient) Problems with UPDATING - If the one of value needs to be updated: If that va..
2023.01.15 -
Understanding Database 5 - Advanced SQL Queries (Stored Procedure, Trigger, Views)
Stored Procedure : Define your commands to run several queries by calling one procedure. You can use the conditional command, and it allows you to run the queries depending on what you get. The statement starts with DELIMITER / and finishes with DELIMITER ; Trigger This allows the DBMS to run some query every time a certain query runs. For instance, if you want to update the record of visiting, ..
2023.01.15