Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6b3e0cc authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Enable media scanner bulk inserts

Change-Id: I357162d0fe498a182ccb14630fe565daaa8bb0c1
parent a403a2e0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -314,10 +314,8 @@ public class MediaScanner

    private final String mExternalStoragePath;

    // WARNING: Bulk inserts sounded like a great idea and gave us a good performance improvement,
    // but unfortunately it also introduced a number of bugs. All the known bugs were fixed,
    // but we need more testing before enabling.
    private static final boolean ENABLE_BULK_INSERTS = false;
    /** whether to use bulk inserts or individual inserts for each item */
    private static final boolean ENABLE_BULK_INSERTS = true;

    // used when scanning the image database so we know whether we have to prune
    // old thumbnail files