You are viewing a single thread.
View all comments
7 points
*

I’d still like a deeper dive into how database corruption led to data restoration

It seems like deleting a photo must just be removing the entry from the SQLite database, and not actually deleting the photo?

permalink
report
reply
2 points

Media library apps have been doing this kind of stuff forever. An index of the files + metadata allows for a better and more performant experience. But, if an entry in the DB gets pooched, file remains on the drive and is hidden from the user.

Many media library apps actually have a way to repair and or rebuild the library DB if it gets out of sync or corrupted. iTunes straight up put that feature in the menu bar. The Photos app will do it if you launch the app while holding command-option.

Back when iPods were king, how many of us had old music come back to life after a fucked up iTunes library was rebuilt? It’s kind of a similar issue.

permalink
report
parent
reply
1 point

Sure, an index makes sense for quick search, but I’m confused why deleting it wouldn’t remove it from the filesystem too

Is that why iPhones seem to have no idea how much disk space they’re using?

permalink
report
parent
reply
1 point

Given the rarity of this, it could’ve just been the normal random stuff that happens in computer land. Requests that don’t complete because they were interrupted by a crash, the rare bad block, etc. Or maybe it was just a bug that occasionally reared its head under certain circumstances.

Whatever it was, it wasn’t the first time a piece of software had an index that was messed up and out of sync with the stored files.

As for the iPhone storage thing you mentioned, I don’t know what you’re talking about. There was a IOS 17 bug early on where people mentioned that the OS needed a restart to claw back space from temporary install files and caches.

That said, the corrupted DB we’re talking about appears specific to the photos app. It’s not the file system index. It’s basically a glorified preference file.

permalink
report
parent
reply
-6 points

Yeah they keep it for AI training.

Such bs.

permalink
report
parent
reply
4 points

@Valmond @ozymandias117 oh so we’re still doing the baseless-accusation-without-knowing-how-it-works thing?

They keep deleted photos for a time in iCloud in case someone comes looking for them

Every cloud storage provider does it, every mail server does it, it’s incredibly commonplace

permalink
report
parent
reply
1 point

The article specifically states that iCloud wasn’t related to the bug

permalink
report
parent
reply

Apple

!apple_enthusiast@lemmy.world

Create post
Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

Community stats

  • 1.2K

    Monthly active users

  • 1.2K

    Posts

  • 18K

    Comments