<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    BLOBs and CLOBs


    solidDB® can store binary and character data up to 2147483647 (2G - 1) bytes long. When such data exceeds a certain length, the data is called a BLOB (Binary Large OBject) or CLOB (Character Large OBject), depending upon the data type that stores the information. CLOBS contain only "plain text" and can be stored in any of the following data types:

    CHAR, WCHAR

    VARCHAR, WVARCHAR

    LONG VARCHAR (mapped to standard type CLOB),

    LONG WVARCHAR (mapped to standard type NCLOB)

    BLOBs can store any type of data that can be represented as a sequence of bytes, such as a digitized picture, video, audio, a formatted text document. (They can also store plain text, but you'll have more flexibility if you store plain text in CLOBs). BLOBs are stored in any of the following data types:

    BINARY

    VARBINARY

    LONG VARBINARY (mapped to standard type BLOB)

    Since character data is a sequence of bytes, character data can be stored in BINARY fields, as well as in CHAR fields. CLOBs can be considered a subset of BLOBs.

    For convenience, we will use the term BLOBs to refer to both CLOBs and BLOBs.

    For most non-BLOB data types, such as integer, float, date, etc., there is a rich set of valid operations that you can do on that data type. For example, you can add, subtract, multiply, divide, and do other operations with FLOAT values. Because a BLOB is a sequence of bytes and the database server does not know the "meaning" of that sequence of bytes (i.e. it doesn't know whether the bytes represent a movie, a song, or the design of the space shuttle), the operations that you can do on BLOBs are very limited.

    solidDB does allow you to perform some string operations on CLOBs. For example, you can search for a particular substring (e.g. a person's name) inside a CLOB by using the LOCATE() function. Because such operations require a lot of the server's resources (memory and/or CPU time), solidDB allows you to limit the number of bytes of the CLOB that are processed. For example, you might specify that only the first 1 megabyte of each CLOB be searched when doing a string search. For more information, see the description of the MaxBlobExpressionSize configuration parameter in solidDB Administration Guide.

    Although it is theoretically possible to store the entire blob "inside" a typical table, if the blob is large, then the server usually performs better if most or all of the blob is not stored in the table. In solidDB, if a blob is no more than N bytes long, then the blob is stored in the table. If the blob is longer than N bytes, then the first N bytes are stored in the table, and the rest of the blob is stored outside the table as disk blocks in the physical database file. The exact value of "N" depends in part upon the structure of the table, the disk page size that you specified when you created the database, etc., but is always at least 256. (Data 256 bytes or shorter is always stored in the table.)

    If a data row size is larger than one third of the disk block size of the database file, you must store it partly as a BLOB.

    The SYS_BLOBS system table is used as a directory for all BLOB data in the physical database file. One SYS_BLOB entry can accommodate 50 BLOB parts. If the BLOB size exceeds 50 parts, several SYS_BLOB entries per BLOB are needed.

    The query below returns an estimate on the total size of BLOBs in the database.

    select sum(totalsize) from sys_blobs

    The estimate is not accurate, because the info is only maintained at checkpoints. After two empty checkpoints, this query should return an accurate response.



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-11-30 13:44 Chan Chen 閱讀(327) 評論(0)  編輯  收藏 所屬分類: DB

    主站蜘蛛池模板: 成人毛片免费在线观看| 国产好大好硬好爽免费不卡| 99精品国产免费久久久久久下载| 亚洲中文久久精品无码| 国产精品永久免费| 国产亚洲色视频在线| 成人妇女免费播放久久久| 在线精品亚洲一区二区小说| eeuss影院免费直达入口| 亚洲男人天堂2020| 精品国产污污免费网站入口 | 一二三四免费观看在线视频中文版| 内射干少妇亚洲69XXX| 18pao国产成视频永久免费| 亚洲人成网站在线观看播放动漫| 在线看免费观看AV深夜影院| 亚洲三级高清免费| 国产aa免费视频| 日韩精品视频在线观看免费| 在线日韩日本国产亚洲| 免费观看成人久久网免费观看| 亚洲AV无码日韩AV无码导航| 亚洲黄色免费网站| 亚洲国产精品无码久久九九大片| 日韩一级视频免费观看| gogo免费在线观看| 亚洲av无码潮喷在线观看 | 手机看片国产免费永久| 亚洲av无码片在线播放| 毛片免费观看的视频| 日本永久免费a∨在线视频| 国产成人精品日本亚洲| 国产精品久久免费| 色吊丝免费观看网站| 亚洲精品无码av人在线观看| 99视频全部免费精品全部四虎| 精品国产日韩亚洲一区在线| 亚洲AV日韩AV鸥美在线观看| 白白国产永久免费视频| 99久久免费国产特黄| 亚洲男人的天堂久久精品|