Question
Assuming that I am doing an indexed scan of a table containing a column varbinary(max), will the binary content be physically copied to the indexed B-Tree view, or will the original fields be “referenced” in some way, without physically duplicating their contents?
In other words, if I do an indexed scan of a table containing a BLOB, will the duplicate storage needed for the BLOB be duplicated?
More details
When using a full-text index for binary data, for example varbinary(max), we need an additional filter-type column to indicate how to extract text from this binary data so that it can be indexed, for example:
CREATE FULLTEXT INDEX ON <table or indexed view> (
<data column> TYPE COLUMN <type column>
)
...
In my particular case, these fields are in different tables, and I'm trying to use an indexed view to combine them, so they can be used in a full-text index.
Of course, I could copy the type field to the BLOB table and save it manually (while maintaining synchronization with the original), but I'm wondering if I can make a DBMS for this automatically, which would be preferable if there is a steep price for payment in terms of storage.
In addition, combining these two tables into one will have its negative consequences, and not go into details ...
source
share