Solved

Database sweep

Posted on 2004-04-03
3
2,237 Views
Last Modified: 2013-12-09
what does database sweep actually do
0
Comment
Question by:jobarb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:idt
ID: 10747582
A sweep performs garbage collection on the database.

As records are deleted, or updated, the old version of the row remains in place, simply marked obsolete.  Over time your database is a mixture of current versions and backversions of rows.  Depending on the activity of your database, that is how often rows are deleted or updated, a considerable amount of the total diskspace is occupied by these back versions.

When a sweep is performed, the database pages are examined to see if the page can be marked free, that is used by new data.  This can improve performance since if no free pages are available, additional disk space needs to be allocated from the OS.

Additional performance is gained since these pages are no longer read when performing natural scans, and index traversing.

You have a choice of allowing sweep to run automatically every N transactions, or manually.

Daniel
0
 
LVL 6

Accepted Solution

by:
BAlexandrov earned 50 total points
ID: 10755109
Here one very good article about Interbase specifics
http://bdn.borland.com/article/0,1410,23216,00.html
0
 

Expert Comment

by:Earl_Kaplan
ID: 10797221
Mainframe dinosaurs will remember that the sweep process is called database reorganization (reorg) and was done regularly.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question