←back to thread

275 points whatisabcdefgh | 3 comments | | HN request time: 0.748s | source
1. ignoramous ◴[] No.45133967[source]
> SQLite database has a lot of capability, which this essay has only begun to touch upon. But hopefully this quick glimpse has convinced some readers that using an SQL database as an application file format is worth a second look.

It really is. One of the experiments we have been doing currently to make bug reporting from Androids easier (and to an extent, reduce user frustration and fatigue) is to store app logs (unstructured) in (an in-memory) SQLite table. It lends very well in to on-device LLMs (like Gemma 3n or Qwen2.5 0.5b), as users can Q&A to know just what the app is doing and why it won't work the way they want it to. On-device LLMs are limited (context length and/or embeddings) and too many writes (in batches of 1000 rows) to the in-memory SQLite table (surprisingly) eats up battery like no tomorrow, so this "chat to know what the app is doing" isn't rolled out to everyone, yet.

replies(1): >>45135213 #
2. treyd ◴[] No.45135213[source]
What kinds of queries are being done on the logs such that it makes sense to use sqlite instead of, like, just a ring buffer?
replies(1): >>45135989 #
3. mschuster91 ◴[] No.45135989[source]
The problem they're alluding to, I think, isn't the query side, it's the creation side. adb logcat and logging in Android in general is one hell of a clusterfuck, not being helped by logging in Java being a PITA.