db 스키마를 만드는 방법을 찾으려고합니다. 데이터베이스에 대한 대부분의 작업은 읽기입니다. NoSQL db 스키마 디자인
내가 너무 스키마가1) Grab all books by "F.Scott Fitzgerald"
2) Grab books under genre "Novel"
3) Grab all book with page count less than 400
4) Grab books with page count more than 100 no later than 1930
난 그냥 저자에 대해 별도의 컬렉션을 만들해야
등이{
{ title : "Adventures of Huckleberry Finn"
author : ["Mark Twain", "Thomas Becker", "Colin Barling"],
pageCount : 366,
genre: ["satire"] ,
release: "1884",
},
{ title : "The Great Gatsby"
author : ["F.Scott Fitzgerald"],
pageCount : 443,
genre: ["Novel, "Historical drama"] ,
release: "1924"
},
{ title : "This Side of Paradise"
author : ["F.Scott Fitzgerald"],
pageCount : 233,
genre: ["Novel] ,
release: "1920"
}
}
그래서 대부분의 작업이 될 것 무언가 같이보고 수있는 응용 프로그램에 책을 판매하고있어 말 장르를 작성한 다음 관계형 데이터베이스처럼 참조하거나 위와 같이 포함 시키십시오. 필자가 수동으로 필자 이름을 입력해야하는 DB에 데이터를 저장하기 위해 필자의 파일을 포함하는 것처럼 보이기 때문에 F.Scott Fitzgerald의 철자를 잘못 입력하면 결과를 얻지 못할 수 있습니다.