资源加载中... loading...

LogVacuum

Used to reclaim the storage space occupied by SQLite when deleting data after calling the LogReset() function to clear the log.

LogVacuum()

function main() {
    LogReset()
    LogVacuum()
}
def main():
    LogReset()
    LogVacuum()
void main() {
    LogReset()
    LogVacuum()
}

The reason is that SQLite does not reclaim the occupied space when deleting data, and it needs to execute VACUUM to clean up the table and free up space. File move operation occurs when this function is called, and the delay is large, so it is recommended to call at a suitable time interval.

{@fun/Log/LogReset LogReset}

LogReset console.log