Query optimization requires an understanding of the underlying implementation to access the database efficiently. However, this compromises the concept of encapsulation. The OODBMS Manifesto, discussed in Section 26.1.4, suggests that this may be acceptable although, as we discussed, this seems questionable.