The process of decreasing the amount of fragmented files on a computer's system hard drive.
Questions tagged [defragmentation]
76 questions
1
vote
1 answer
Defrag indexes on very large production tables
I want to defrag indexes on a very large production table. This table is used by clients and the downtime will create a problem. What is th ebest methid to defrag indexes on such SQL server tables. If I rebuild indexes it will lock table. Should I…

Prateek
- 231
- 3
- 6
- 12
1
vote
0 answers
Is there a possibility of creating a visual defrag scrip in python3.x?
I have been looking for a script that could defrag a HDD but also display what it is defragmenting and what was defragged, through with os.walk(). But i've found nothing.
import os
def run():
filestoscan = 0
list =…

LethDev2019
- 116
- 1
- 5
1
vote
2 answers
Can LockFileEx be used with Volume Handles?
I'm experimenting with FSCTL_MOVE_FILE. Mostly everything is working as expected. However, sometimes if I try to re-read (via FSCTL_GET_NTFS_FILE_RECORD) the Mft record I just moved, I'm getting some bad data.
Specifically, if the file record says…

David Wohlferd
- 7,110
- 2
- 29
- 56
1
vote
1 answer
Mariadb table defragmentation using OPTIMIZE
We are running MariaDB v 10.1.30, testing a script to run database maintenance script for defragmenting tables and rebuilding indexes using OPTIMIZE TABLE command by using the new 10.1.1 patch of setting innodb_defragment = 1.
I've tested Alter…

vak
- 11
- 3
1
vote
1 answer
how to perform defragmentation on cassandra table
I am playing around with Python and some of NoSql DBs to create file store(mainly because of built in replication), i tried it with MongoDB and its working but due to "Write Greedy" nature of MongoDB i moved to cassandra and implemented the same…

Ninad Mhatre
- 549
- 1
- 7
- 17
1
vote
1 answer
Does anyone know of a way to turn off Windows Defragmenter's default schedule using a batch file?
I would like to use a batch file to stop Windows Disk Defragmenter from running on a schedule. By default it is enabled and I would like to disable it on Windows 7
Right now it is turned off but you get the idea.
Does anyone know how to do this?
I…

Justin
- 1,249
- 1
- 15
- 37
1
vote
1 answer
Is defragging tough on replication?
I've been told that defragging causes the log to grow tremendously. Is this true? If so, is there something better to do than defragging that will not impact the log as much? We are running SQL Server 2005 replicating between 2 sites.

Jim
- 624
- 8
- 20
1
vote
1 answer
Programmatically determine a file's fragmentation status
Is it possible to determine a specific file's fragmentation status (that is, the amount of distinct fragments this file occupies)?
If so, how can this be done using .net?
The motivation is this: my application is keeping data in a FileStream,…

M.A. Hanin
- 8,044
- 33
- 51
1
vote
1 answer
SQLite databases and operating system defrag
I have seen some applications using proprietary databases crash or experience data corruption if the application was running when the OS (Windows in this case) performs a disk defragmentation. My question is this: Does SQLite (sqlite3) suffer from…

Brian Minton
- 3,377
- 3
- 35
- 41
1
vote
2 answers
Windows defrag is not recognized as an internal or external command, operable program or batch file
I'm working on making a tech-toolkit program, and included in this 'toolkit' will be a button which runs a defrag on the local disk. Currently the batch file I've made for this is simple, it just runs a basic fragmentation analysis:
defrag C:…

James Litewski
- 21
- 1
- 3
1
vote
1 answer
VB.NET Defrag Complete Notification
Is there an event or other means by which a VB.NET program can be notified when a Windows 7 defrag has completed (so the program can instruct the PC to shut down)?

Matthew Constance
- 31
- 2
1
vote
4 answers
Efficient list compacting
Suppose you have a list of unsigned ints. Suppose some elements are equal to 0 and you want to push them back. Currently I use this code (list is a pointer to a list of unsigned ints of size n
for (i = 0; i < n; ++i)
{
if (list[i])
…

Patrik
- 845
- 2
- 8
- 20
1
vote
1 answer
Defragmenting very large db4o database files
I have a very large ( 102gb ) db4o .yap file that i am trying to defragment. I keep getting a java heap space error. Is there something i can do to tweak the settings to prevent this? I am already setting the objectCommitFrequency to 10000. I am…

Andy Rayne
- 13
- 2
0
votes
2 answers
Move OS files to the begin of the disk
I would like to know if it's possible to move the files on a given partition to the begin of the disk, where the read/writes are faster.
I currently have Windows Vista installed on the first partition of the disk with a few more partitions for work…

smartins
- 3,808
- 7
- 42
- 54
0
votes
0 answers
CLI RPI: How to fdisk and defrag your flashdisk
Hey does anoybody knows a site or command to fdisk your flashcard on your raspberry? Secondly i want to defrag it.
Anybody help? Greets, Wouter
PS: It is mounted in this enclosure. You can always ask for further explanation of my project

Wouter van Wegen
- 1
- 2