What does database defragmentation do?
To protect your data from being accidently erased or lost, RB4 uses its own binary database system. Unlike with other script databases, this system has not ever lost any trade data in years of practice. This result is achieved by not overwriting database files on every script update. RB4 overwrites only certain file blocks instead. As a result, if you delete a trade, the space will be marked as free on the file, but not set free on your HDD. This kind of process is called fragmentation and this kind of database system does not get smaller in size unless you defragment it. It does not get any bigger either though, so there is no need to worry that your disk will get full or anything like that. The only case when you would really want to defragment the DB is after you delete a lot of trades. Smaller database means lower CPU time when loading it.