이제 이러한 테이블이 서로 다른 데이터베이스에 있으므로 더 이상 데이터 모델의 무결성을 강
제할 수 없다.
Album
테이블에서 행을 삭제하는 것을 막을 방법이 없으므로 정확히 어떤 항목
이 판매됐는지 알아내려고 할 때 문제가 발생한다.
어느 정도까지는 엔티티
entity
간 관계의 무결성을 적용하기 위해 더 이상 데이터베이스에 의존
할 수 없다는 사실에 익숙해져야 한다. 물론, 한 데이터베이스 내부에 남아 있는 데이터의 경우
문제가 되지 않는다.
여러 가지 우회 방법이 있지만, ‘대처 패턴
coping
pattern
’이 이 문제를 해결할 방법을 더 잘 표현하
는 용어인 것 같다.
Album
테이블에서 소프트 삭제
soft
delete
를 하면, 실제로 레코드를 삭제하지
는 않고 삭제된 것으로 표시만 한다. 또 다른 방법은 판매 시 앨범 이름을
Ledger
테이블에 복
사하는 것이지만, 앨범 이름의 동기화 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.