Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Just the number of physical index and table pages written by actual checkpoint operations?

Is there any I/O optimization; e.g., predictive writes prior to a final checkpoint?

Does DiskWrite include anything else?

Physical temporary file pages?

OUTPUT statements?

UNLOAD statements?

xp_write_file()?

asked 19 Jan '16, 10:46

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050
accept rate: 20%


There is only two places in SQLA that the DiskWrite database counter is incremented. They are:

  • after the completion of a database page disk write to any of the dbspaces, including temp and (transaction and mirror) logs
  • after the completion of a group write (i.e. multiple pages) to any of the dbspaces.

So the counter does not include any writes to any auxiliary files such as unload, xp_write_file, etc (nor output... but this is done by the dbisql[c] client!)

Regarding your question "Is there any I/O optimization?". Yes, prior to a checkpoint a pass over the cache is made to flush dirty pages before the database is locked (from connections) to do the actual checkpoint.

permanent link

answered 19 Jan '16, 11:01

Mark%20Culp's gravatar image

Mark Culp
24.9k10141297
accept rate: 41%

edited 19 Jan '16, 13:23

> any of the dbspaces, including temp

That makes sense...

> and logs

...but what about the LogWrite property?

(19 Jan '16, 12:29) Breck Carter
Replies hidden
2

Sorry, by "logs" I was referring to the transaction log and mirror log, not the console log, etc. I've clarified my answer. LogWrite refers to the number of writes made to the transaction log and is a subset of DiskWrite.

(19 Jan '16, 13:23) Mark Culp
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×24

question asked: 19 Jan '16, 10:46

question was seen: 1,609 times

last updated: 19 Jan '16, 13:25