?
Solved

Database sweep

Posted on 2004-04-03
3
Medium Priority
?
2,266 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 200 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

762 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