본문 바로가기

db

Make ORM entity 서버 설정을 모두 마친 상태이며 이제 필요한건 실제 서비스 구상에 필요한 데이터베이스 설계인 것 같다.TypeORM 을 사용하였기 때문에 sql문의 사용을 최소화 시켜서 서버 개발을 할 수 있었으며,편한점도 있었지만 한편으로는 불편한점도 적잖게 있었다.쿼리를 직접 사용하던 기존 방식에서 ORM을 이용하여 데이터를 가져는 방식은 나에겐 아직 적응이 필요한 것 같다. 하지만 ORM을 사용해서 데이터를 가져옴으로 인해서 GraphQL을 이용한 개발에는 강점이 존재하고 편하다는 것은 누구나 인정할 것 같은 부분이다. 또한 쿼리 빌더의 사용법이 익숙해진다면 쿼리를 작성하면서 발생할 수 있는 실수들도 최소화 될것으로 예상이 된다.여기서 작성할 entities들은 Graphql Server 구동 글(Run Graph.. 더보기
DB dump with single transaction mysqldump [DB Info] [dump option] [dump target] > /path/to/dump/file.sql If you want to dump with single transaction..just add one option in [dump option] That is "--single-transaction" options.It make the dump process to slow, but it did not lock the table.So you can insert, update...etc..during the db dump process. 더보기
dnf update Berkeley DB library error error: rpmdb: BDB0113 Thread/process 7238/140477050860864 failed: BDB1507 Thread died in Berkeley DB libraryerror: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recoveryerror: cannot open Packages index using db5 - (-30973)error: cannot open Packages database in /var/lib/rpmError: Error: rpmdb open failed 위와 같은 에러가 났다는건 dnf process 도중에 중단이 된 경우일 확률이 크다... 더보기