Tagging
Try bookmarklet. Easy tagging.
Do you want to delete?
Do you want to modify?
  • LINKTAG
  • New
  • Tag
  • Comment
  • Tag, design
Sign in

design

it ops db design

๐Ÿ“‹ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง ๊ฐœ๋… & ERD ๋‹ค์ด์–ด๊ทธ๋žจ ์ž‘์„ฑ ๐Ÿ’ฏ ์ด์ •๋ฆฌ

๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง ์ด๋ž€? ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง์ด๋ž€ ์ •๋ณด์‹œ์Šคํ…œ ๊ตฌ์ถ•์˜ ๋Œ€์ƒ์ด ๋˜๋Š” ์—…๋ฌด ๋‚ด์šฉ์„ ๋ถ„์„ํ•˜์—ฌ ์ดํ•ดํ•˜๊ณ  ์•ฝ์†๋œ ํ‘œ๊ธฐ๋ฒ•์— ์˜ํ•ด ํ‘œํ˜„ํ•˜๋Š”๊ฑธ ์˜๋ฏธํ•œ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์ด๋ ‡๊ฒŒ ๋ถ„์„๋œ ๋ชจ๋ธ์„ ๊ฐ€์ง€๊ณ  ์‹ค์ œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๊ฐœ๋ฐœ ๋ฐ ๋ฐ์ดํ„ฐ ๊ด€๋ฆฌ์— ์‚ฌ์šฉ๋œ๋‹ค. ํŠนํžˆ ๋ฐ์ดํ„ฐ๋ฅผ ์ถ”์ƒํ™”ํ•œ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๊ณจ๊ฒฉ์„ ์ดํ•ดํ•˜๊ณ  ๊ทธ ์ดํ•ด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ SQL๋ฌธ์žฅ์„ ๊ธฐ๋Šฅ๊ณผ ์„ฑ๋Šฅ์ ์ธ ์ธก๋ฉด์—์„œ ํšจ์œจ์ ์œผ๋กœ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ค๊ณ„์˜ ํ•ต์‹ฌ ๊ณผ์ •์ด๊ธฐ๋„ ํ•˜๋‹ค. ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง ์ˆœ์„œ ์ ˆ์ฐจ 1. ์—…๋ฌด ํŒŒ์•… (์š”๊ตฌ์‚ฌํ•ญ ์ˆ˜์ง‘ ๋ฐ ๋ถ„์„) ์—…๋ฌด ํŒŒ์•…์€ ์–ด๋– ํ•œ ์—…๋ฌด๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ ์ „์— ํ•ด๋‹นํ•˜๋Š” ์—…๋ฌด์— ๋Œ€ํ•ด์„œ ํŒŒ์•…ํ•˜๋Š” ๋‹จ๊ณ„ ์ด๋‹ค. ๋ชจ๋ธ๋ง์— ์•ž์„œ ๊ฐ€์žฅ ๋จผ์ € ํ•ด์•ผ ํ•  ๊ฒƒ์€ ์–ด๋– ํ•œ ์—…๋ฌด๋ฅผ ๋ฐ์ดํ„ฐํ™”ํ•˜์—ฌ ๋ชจ๋ธ๋ง ํ•  ๊ฒƒ์ธ์ง€์— ๋Œ€ํ•œ ์š”๊ตฌ์‚ฌ..
wono | discuss |
it ops db design

[DB] DB ์„ค๊ณ„ ๊ณผ์ •

DB ์„ค๊ณ„ ์ˆœ์„œ1๏ธโƒฃย ์š”๊ตฌ์‚ฌํ•ญ ์ˆ˜์ง‘ ๋ถ„์„์‹ค์ œ ์„ธ๊ณ„์—์„œ ์–ด๋–ค ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•  ๊ฒƒ์ธ์ง€์— ๋Œ€ํ•œ ์š”๊ตฌ์‚ฌํ•ญ ์ˆ˜์ง‘์š”๊ตฌ์‚ฌํ•ญ์— ๋Œ€ํ•ด ์–ด๋–ค ๋ฐ์ดํ„ฐ๋“ค์ด ํ•„์š”ํ•œ์ง€, ์–ด๋–ค ๊ธฐ๋Šฅ๋“ค์ด ํ•„์š”ํ•œ์ง€ ๋ถ„์„2๏ธโƒฃย ๊ฐœ๋…์  ์„ค๊ณ„ํ•ต์‹ฌ Entity ๋„์ถœERD ์ž‘์„ฑ3๏ธโƒฃย ๋…ผ๋ฆฌ์  ์„ค๊ณ„ERD-RDB ๋ชจ๋ธ์„ ํ†ตํ•ด ๊ฐœ
wono | discuss |
it ops db design history trigger

[PostgreSQL] trigger ์‚ฌ์šฉํ•˜๊ธฐ (history table ๋งŒ๋“ค๊ธฐ)

์ฐธ๊ณ  ์‚ฌ์ดํŠธ https://www.postgresql.org/docs/current/sql-createtrigger.html ์–ผ๋งˆ ์ „์— ํŠน์ • table์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์ด๋ ฅ์„ ์ €์žฅํ•ด์•ผ ํ•˜๋Š” ์ž‘์—…์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ trigger๋ฅผ ์ฒ˜์Œ ์‚ฌ์šฉํ•˜ ๋ณด์•˜๋‹ค. (A table์—์„œ ๋ฐœ์ƒํ•˜๋Š” insert, update row๋ฅผ B table์— ์ถ”๊ฐ€) ์ ์šฉํ•ด์•ผ ํ•˜๋Š” ์กฐ๊ฑด์ด ๊ฐ„๋‹จํ•ด์„œ trigger ์ ์šฉ๋„ ๊ฐ„๋‹จํ•˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. trigger ์ƒ์„ฑ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์„ ์–ธํ•œ๋‹ค. create trigger save_history after insert or update on A for each row execute procedure trigger_upsert_data(); - trigger ์ด๋ฆ„์€ save_history๋กœ ์„ ์–ธ - ins..
wono | discuss |
it ops db design history trigger

๋ฐ์ดํ„ฐ ๋ณ€๊ฒฝ ์ด๋ ฅ ๊ธฐ๋ก ๋ฐ ํšจ์œจ์ ์ธ ํžˆ์Šคํ† ๋ฆฌ ์ถ”์  ๊ด€๋ฆฌ ์ „๋žต

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๋ณ€๊ฒฝ๋œ ์‚ฌํ•ญ๋งŒ ํ™•์ธํ•˜๋Š” ๊ตฌ์กฐ๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•์€ ์—ฌ๋Ÿฌ ๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์ธ RDBMS์—์„œ๋„ ์ด๋Ÿฌํ•œ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ํŠน์ •ํ•œ ์š”๊ตฌ์‚ฌํ•ญ์— ๋”ฐ๋ผ ๋‹ค๋ฅธ ์ ‘๊ทผ ๋ฐฉ๋ฒ•์ด ํ•„์š”ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.ํŠธ๋ฆฌ๊ฑฐ(Trigger): ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํŠธ๋ฆฌ๊ฑฐ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ ๋ณ€๊ฒฝ ์‹œ ๋กœ๊ทธ ํ…Œ์ด๋ธ”์— ๊ธฐ๋ก์„ ๋‚จ๊ธฐ๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์‰ฝ๊ฒŒ ์ถ”์ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.๋ณ€๊ฒฝ ๋ฐ์ดํ„ฐ ์บก์ฒ˜(Change Data Capture, CDC): ๋งŽ์€ RDBMS๊ฐ€ CDC ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜์—ฌ ํ…Œ์ด๋ธ”์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์บก์ฒ˜ํ•˜๊ณ  ์ด๋ฅผ ๋ณ„๋„์˜ ํ…Œ์ด๋ธ”์ด๋‚˜ ๋กœ๊ทธ๋กœ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ๋ณ€๊ฒฝ๋œ ๋ฐ์ดํ„ฐ๋งŒ ์ถ”์ถœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.ํƒ€์ž„์Šคํƒฌํ”„ ํ•„๋“œ ์‚ฌ์šฉ: ํ…Œ์ด๋ธ”์— 'last_updated'์™€ ๊ฐ™์€ ํƒ€์ž„์Šคํƒฌํ”„ ํ•„๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ ˆ์ฝ”๋“œ..
wono | discuss |
it ops db design history trigger

[ORACLE] ํŠธ๋ฆฌ๊ฑฐ(Trigger)๋ฅผ ์ด์šฉํ•œ ํ…Œ์ด๋ธ” ์ˆ˜์ • ์ด๋ ฅ ๊ด€๋ฆฌ

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๋ฐ์ดํ„ฐ์˜ ๋ณ€๊ฒฝ ์ด๋ ฅ์„ ๊ด€๋ฆฌํ•˜๋Š” ๊ฒƒ์€ ๋งค์šฐ ์ค‘์š”ํ•˜๋‹ค.์‚ฌ์šฉ์ž๊ฐ€ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ์‚ญ์ œํ•˜๋Š” ๊ฒฝ์šฐ, ๊ทธ ๋‚ด์—ญ์„ ์ €์žฅํ•˜์—ฌ ์ถ”ํ›„์— ์–ด๋–ค ๋ณ€๊ฒฝ์ด ์žˆ์—ˆ๋Š”์ง€ ์ถ”์ ํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•œ๋‹ค.์ด๋ฅผ ์œ„ํ•ด Oracle์—์„œ๋Š” ํŠธ๋ฆฌ๊ฑฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ…Œ์ด๋ธ”์˜ ์ˆ˜์ • ์ด๋ ฅ์„ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค.์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” ํŠธ๋ฆฌ๊ฑฐ๋ฅผ ์ด์šฉํ•˜์—ฌ ์ˆ˜์ • ์ด๋ ฅ์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด์ž.ย 1. ์‚ฌ์šฉ์ž ์ž‘์—… ํ…Œ์ด๋ธ” ์ƒ์„ฑ๋จผ์ € ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฝ์ž…(insert), ์ˆ˜์ •(update), ์‚ญ์ œ(delete)ํ•  ์ˆ˜ ์žˆ๋Š” ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•œ๋‹ค.์˜ˆ๋ฅผ ๋“ค์–ด, users ํ…Œ์ด๋ธ”์ด๋ผ๊ณ  ๊ฐ€์ •ํ•˜์—ฌ ์ƒ์„ฑํ•ด ๋ณด์ž.(์‹ค์ œ ์šด์˜ ํ…Œ์ด๋ธ”์€ ์˜ˆ์‹œ์™€๋Š” ๋น„๊ต๋„ ์•ˆ๋  ์ •๋„๋กœ ๋ณต์žกํ• ํ…๋ฐ, ์˜ˆ์‹œ๋‹ˆ๊นŒ^^. ์ฐธ์กฐ๋งŒ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค)CREATE TABLE users ( id NUMBER PRIMAR..
wono | discuss |
it ops db design history

[๋””๋น„] ์ถ”์  ๊ฐ€๋Šฅํ•œ ํ…Œ์ด๋ธ” ์„ค๊ณ„ : ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ

wono | discuss |
it ops db design history

๊ด€๊ณ„ํ˜• ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง ๋…ธํŠธ : 06 ์ด๋ ฅ ๋ฐ์ดํ„ฐ ์ด์•ผ๊ธฐ

Chapter 6 : ์ด๋ ฅ ๋ฐ์ดํ„ฐ ์ด์•ผ๊ธฐ
wono | discuss |
it ops db design history

'์ด๋ ฅ ์—”ํ„ฐํ‹ฐ๋ฅผ ์„ค๊ณ„ํ•˜๋Š” 10๊ฐ€์ง€ ๋ฐฉ๋ฒ•'์˜ ๊ฒ€์ƒ‰๊ฒฐ๊ณผ

wono | discuss |
it ops db design

MySQL 8.0 Labs: [Recursive] Common Table Expressions in MySQL (CTEs), Part Three - hierarchies

fw_error_www
wono | discuss |
it ops design tenancy tenant

PostgreSQL ๋ฅผ ์‚ฌ์šฉํ•œ ๋ฉ€ํ‹ฐ ํ…Œ๋„Œ์‹œ ๊ตฌํ˜„: ๊ฐ„๋‹จํ•œ ์‹ค์ œ ์˜ˆ์ œ๋กœ ๋ฐฐ์šฐ๊ธฐ ยท Logto ๋ธ”๋กœ๊ทธ

PostgreSQL ํ–‰ ์ˆ˜์ค€ ๋ณด์•ˆ (RLS) ๋ฐ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์—ญํ• ์„ ํ†ตํ•ด ํ…Œ๋„ŒํŠธ ๊ฐ„์˜ ์•ˆ์ „ํ•œ ๋ฐ์ดํ„ฐ ๊ฒฉ๋ฆฌ๋ฅผ ์œ„ํ•œ ๋ฉ€ํ‹ฐ ํ…Œ๋„ŒํŠธ ์•„ํ‚คํ…์ฒ˜๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์‹ค์ œ ์˜ˆ์ œ๋ฅผ ํ†ตํ•ด ๋ฐฐ์›Œ๋ณด์„ธ์š”.
wono | discuss |
it ops design tenancy tenant

๋ฉ€ํ‹ฐํ…Œ๋„Œ์‹œ(Multi-tenancy) ๊ฐœ๋…๊ณผ ์ ์šฉ ๋ฐฉ์•ˆ - ํƒ€๊นƒ์ฝ”๋”์Šค

๋ชฉ์ฐจ๋ฉ€ํ‹ฐํ…Œ๋„Œ์‹œ๋ž€?๋ฉ€ํ‹ฐํ…Œ๋„Œ์‹œ๋ฅผ ์ ์šฉํ•˜๋Š” ์ด์œ ์ฃผ์˜ ์‚ฌํ•ญ๋ฉ€ํ‹ฐํ…Œ๋„Œ์‹œ ์•„ํ‚คํ…์ฒ˜ ์ ์šฉ ๋ฐฉ์•ˆ๋ ˆ์ฝ”๋“œ ์ˆ˜์ค€์˜ ๋ฐ์ดํ„ฐ ๋ถ„๋ฆฌ์žฅ์ ๋‹จ์ ํ…Œ์ด๋ธ” ์ˆ˜์ค€์˜ ๋ฐ์ดํ„ฐ ๋ถ„๋ฆฌ์žฅ์ ๋‹จ์ ์Šคํ‚ค๋งˆ ์ˆ˜์ค€์˜ ๋ฐ์ดํ„ฐ ๋ถ„๋ฆฌ์žฅ์ ๋‹จ์ DBMS ์„œ๋น„์Šค ์ˆ˜์ค€์˜ ๋ฐ์ดํ„ฐ ๋ถ„๋ฆฌ์žฅ์ ๋‹จ์ ์ฐธ๊ณ  [โ€ฆ]
wono | discuss |
it ops db design

๊ด€๋ฆฌ์ž ๊ถŒํ•œ, ๋ฉ”๋‰ด ๊ด€๋ฆฌ (1)

์œ ์ €, ๋ฉ”๋‰ด CURD ๋ฉ”๋‰ด ๊ถŒํ•œ ํ…Œ์ด๋ธ” ์„ค๊ณ„
wono | discuss |
it ops api design

Usage of /users [GET] - Stack Exchange API

wono | discuss |
it ops api design

Whatโ€™s the best RESTful method to return total number of items in an object?

Iโ€™m developing a REST API service for a large social networking website Iโ€™m involved in. So far, itโ€™s working great. I can issue GET, POST, PUT, and DELETE requests to object URLs and affect my data.
wono | discuss |
it ops api design

Is there any standard for JSON API response format?

Do standards or best practices exist for structuring JSON responses from an API? Obviously, every application's data is different, so that much I'm not concerned with, but rather the "response
wono | discuss |
it ops api design

API ๋””์ž์ธ ๊ฐ€์ด๋“œ ย |ย  Cloud API Design Guide ย |ย  Google Cloud

Google AIP์™€ ์ผ์น˜ํ•˜๋Š” API๋ฅผ ์„ค๊ณ„ํ•˜๊ธฐ ์œ„ํ•œ ๊ฐ€์ด๋“œ๋ผ์ธ ๋ชจ์Œ์ž…๋‹ˆ๋‹ค.
wono | discuss |
design spaceship silhouette

Spaceship Silhouettes

wono | discuss |
2d game design spaceship

Space Ships - starting with the design - 2dgameartguru

Learn to design 2D space ships in Inkscape - this step-by-step tutorial starts by creating interesting silhouettes with basic shapes.
wono | discuss |
google material design ci

๋จธํ‹ฐ๋ฆฌ์–ผ ๋””์ž์ธ

wono | discuss |
web design art illust

James Noel Smith - Illustrator

20 years of illustrations and drawings for magazines, advertising, corporate and institutional publications. International artist famous for his sketchbooks of travel and imagination.
wono | discuss |
Next
© 2025. LINKTAG.ORG. Help Feedback Privacy Terms