The size of the FMDB file does not decrease even after DELETE.

Asked 2 years ago, Updated 2 years ago, 127 views

DELETE does not reduce the size of the FMDB file (xxx.sqlite).

As one of the solutions, I thought that if I create a new sqlite file and copy it as much as I need with an insert, I will be able to create the smallest size file.

However, with this method, it will take a long time to process, so I am troubled.

Is there any good way?

ios database

2022-09-30 21:13

1 Answers

I'm sorry.I solved myself.
VACUUM; command.
Excuse me.


2022-09-30 21:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.