1
@Entity
public class Blog {
@Id ObjectId id;
@reference User author;
String content;
}
or
2
@Entity
public class Blog {
@Id ObjectId id;
ObjectId authorId;
String content;
}
which one should I choose?
eveytime blogDAO.get(id); the first one every query would load all the User data, can that be very slow or waste time?