-1

Here it's mentioned that Vacuuming is necessary in Sqlite.

I have a Database (500MB) in my android application but after some insert and delete the size become 800MB but the database is exact as the first time.

I think Sqlite doesn't delete the empty rows.

I need to clean up the database without creating it again.

Is there any sql statement that I can use in android studio for clean up (By programming)

thank you

Malus Jan
  • 1,860
  • 2
  • 22
  • 26

1 Answers1

1

Someone already said you linked to it. You asked this...

Is there any sql statement

The doc you linked to contains a link to this...

http://sqlite.org/syntax/vacuum-stmt.html

The vacuum command is a statement. That means you would call it the same way you would a select statement.

Harry
  • 11,298
  • 1
  • 29
  • 43