此内容没有您所选择的语言版本。
8.2. Why Use Large Object Support?
JBoss Data Virtualization allows a Translator to return a large object through the translator API by returning a reference to the actual large object. Access to that LOB will be streamed as appropriate rather than retrieved all at once. This is useful for several reasons:
- Reduces memory usage when returning the result set to the user.
- Improves performance by passing less data in the result set.
- Allows access to large objects when needed rather than assuming that users will always use the large object data.
- Allows the passing of arbitrarily large data values.However, these benefits can only truly be gained if the Translator itself does not materialize an entire large object all at once. For example, the Java JDBC API supports a streaming interface for BLOB and CLOB data.