|
|
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
Такая ситуация при записях в BLOB поля происходит запись в лог файл операции INSERT, что существенно снижает производительность, как от этого избавиться ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2002, 15:09:27 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
Посмотри в BOL про recovery models. Может быть имеет смысл с Full перейти на Bulk-logged. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2002, 15:19:57 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
Посмотри в BOL про recovery models. Может быть имеет смысл с Full перейти на Bulk-logged. Поставил эту опцию, с утра лог был 5 Метров теперь 93, причем база около 10М И что теперь делать ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2002, 16:37:14 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
BLOB и BULK, хоть на B и начинаются, суть разные весчи :). Избавиться от записи в журнал транзакций BLOB IMHO невозможно, как невозможно избавиться от записи в него любой информации по команде Insert (за исключением Bulk insert). С помощью Recovery Model можно сделать, чтобы записанная в журнал транзакций информация по чекпоинтам очищалась (Simple recovery model), но не более того. А чтобы увеличить скорость добавления BLOB, попробуйте пожогнлировать флагом трассировки 1180. Кстати, сообщите, если не трудно, какие результаты. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2002, 17:12:15 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
Truncate log on checkpoint=true ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2002, 17:43:24 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
А что мешает использовать writetext WRITETEXT Permits nonlogged , interactive updating of an existing text, ntext, or image column. This statement completely overwrites any existing data in the column it affects. WRITETEXT cannot be used on text, ntext, and image columns in views. Syntax WRITETEXT { table.column text_ptr } [ WITH LOG ] { data } Arguments table.column Is the name of the table and text, ntext, or image column to update. Table and column names must conform to the rules for identifiers. For more information, see Using Identifiers. Specifying the database name and owner names is optional. text_ptr Is a value that stores the pointer to the text, ntext or image data. text_ptr must be binary(16). To create a text pointer, execute an INSERT or UPDATE statement with data that is not NULL for the text, ntext, or image column. For more information about creating a text pointer, see either INSERT or UPDATE. WITH LOG Ignored in Microsoft® SQL Server™ 2000. Logging is determined by the recovery model in effect for the database. data Is the actual text, ntext or image data to store. data can be a literal or a variable. The maximum length of text that can be inserted interactively with WRITETEXT is approximately 120 KB for text, ntext, and image data. Remarks Use WRITETEXT to replace text, ntext, and image data and UPDATETEXT to modify text, ntext, and image data. UPDATETEXT is more flexible because it changes only a portion of a text, ntext, or image column rather than the entire column. If the database recovery model is simple or bulk-logged, WRITETEXT is a nonlogged operation . This means text, ntext, or image data is not logged when it is written to the database; therefore, the transaction log does not fill up with the large amounts of data that often make up these data types. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2002, 09:48:44 |
|
||
|
Как запрещать лог
|
|||
|---|---|---|---|
|
#18+
после перехода на Simple Recovery Лог перестал рости, это радует Относительно WriteText, мешает вот что, я использую в Делфях следующий код procedure TForm1.Button3Click(Sender: TObject); var BlobStream: TADOBlobStream; begin ADODataSet1.Active := true; ADODataSet1.Insert; BlobStream := TADOBlobStream.Create(TBlobField(ADODataSet1.FieldByName('blob')), bmWrite); OpenDialog1.Execute; BlobStream.LoadFromFile(OpenDialog1.FileName); BlobStream.Free; ADODataSet1.FieldByName('id').asInteger := StrToInt(Edit1.Text); ADODataSet1.Post; ADODataSet1.Active := false; end; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2002, 12:20:24 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32041301&tid=1821319]: |
0ms |
get settings: |
7ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
40ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 226ms |
| total: | 332ms |

| 0 / 0 |
