← All articles

Where Your GTD Data Lives: SQLite vs Plain Text vs Cloud

There are three places a GTD system can keep its data. A local SQLite database (what Trayzero uses) gives you fast filtering, crash-safe writes and a single file on your own device. Plain-text files like todo.txt and Org mode give you lists any editor can open forever, and they diff cleanly in Git, but they get slow and fragile as they grow. A cloud service syncs everything everywhere, at the price of an account, a network connection and someone else holding your data.

Published · 8 min read

Every GTD app makes one decision before you type your first task: where the data goes. There are really three answers. A local SQLite database on your device. Plain-text files like todo.txt or Org mode. Or a vendor's cloud server. Trayzero picked the first one, and this post explains why, and when one of the other two is the better call for you.

Short version. SQLite is fast, survives crashes and stays on your phone. Plain text is the most portable thing you can own, and it slows down as it grows. Cloud syncs everywhere, and you pay for that with an account, a network dependency and someone else holding your lists.

What the storage choice actually decides

It sounds like plumbing. It isn't. Where your data lives decides four things you'll feel every day:

  • Speed. How quickly "show me @calls under 15 minutes" comes back.
  • Safety. What happens if the app dies halfway through saving.
  • Ownership. Who can read your lists, and whether you can still open them in ten years.
  • Sync. Whether your phone and laptop see the same inbox.

No option wins all four. Each one gives up something.

SQLite: a database that's really just a file

SQLite's own documentation puts it bluntly: it doesn't compete with server databases, it competes with fopen(). It's a single file on your device, with a stable, documented format, and it's one of the most common ways apps store their data.

For GTD, three properties matter.

Filters stay fast. GTD is a filtering method. Next actions by context, by energy, by time available, by project. A database indexes those fields, so the query doesn't get slower as your archive of finished tasks grows. Flat files have to be read top to bottom.

Writes don't half-happen. SQLite transactions are atomic even if the app crashes, the OS crashes or the battery dies mid-save. Your project either has its new next action or it doesn't. You don't open the app to find a corrupted list.

The file outlives the app. The US Library of Congress lists SQLite as a recommended storage format for datasets, and the SQLite developers plan to support it through 2050. That's about as close to "readable forever" as a binary format gets.

The catch is sync. SQLite has none built in. An app that wants multi-device sync has to bolt it on, and that's where most of the complexity (and most of the servers) come back in.

Plain text: todo.txt and Org mode

Todo.txt is a set of rules for one text file: one task per line, with priorities, dates, +projects and @contexts. Finished tasks move to done.txt. Org mode is richer: a structured plain-text format for outlines, projects and agendas, mostly used from Emacs, and on Android through apps like Orgzly Revived.

What you get is hard to beat:

  • Any editor on any computer opens your lists. No app required.
  • Git tracks every change line by line, so your history is free.
  • There's nothing to export, because the file already is the export.

What you give up shows up later. A text file has no schema. Type @cal instead of @calls and that task quietly drops out of your context list. And as the file grows into thousands of lines, filtering means scanning all of it, so complex views get sluggish. Plain text rewards discipline. If you enjoy tending your system, that's a feature. If you want the app to keep you honest, it's a cost.

Cloud: sync everywhere, data somewhere else

Most cloud task apps keep the real copy of your data on their server, and your devices hold a cached view. That's what makes them great at one thing: open any phone, laptop or browser and the same inbox is there. Sharing with other people is easy for the same reason.

The trade-offs follow from the same design:

  • You need an account before you can capture anything.
  • Your weekly review, your someday list and your client names sit on a third party's servers.
  • If the service changes terms, raises prices or shuts down, your system goes with it unless you exported first. The Ink & Switch local-first essay makes exactly this point: with cloud apps, the server effectively owns your data.

If you live across three devices and share projects with a team, that can be a fair price. If you run a personal GTD system on one phone, you're paying it for a feature you don't use.

Side by side

SQLite on devicePlain text (todo.txt, Org)Cloud service
Filtering a big archiveFast, indexedSlows as the file growsFast, but needs the network
Crash safetyAtomic transactionsDepends on the editorHandled by the vendor
Typos in contexts/tagsApp enforces structureSilent driftApp enforces structure
Who holds the dataYou, on your deviceYou, in a fileThe vendor
Readable without the appYes, documented formatYes, any editorOnly via export
Multi-device syncNot built inGit or a sync folderAutomatic
Account neededNoNoYes

Which one fits how you work

Skip the theory for a minute. Answer these four questions and the choice mostly makes itself.

Where do you capture? If nearly everything lands on your phone (on a walk, in a meeting, at the shop), you want capture to be one tap and zero network. A local database app does that well. Plain text on a phone works too, but typing +project @context syntax on a small keyboard gets old fast.

Where do you review? The weekly review is the step most people drop. If you do it at a desk with a big screen and a coffee, a text file in your favourite editor is pleasant. If you do it on the sofa or on the train, a phone app that walks you through the steps is easier to keep up.

How many devices, really? Count the ones where you'd actually process your inbox, not the ones you own. Plenty of people find the answer is one. If it's one, sync is a cost with no payoff. If it's three, sync is the whole point, and you should weigh a sync folder or a cloud app.

How much do you trust yourself to keep things tidy? Plain text never stops you from writing a task in the wrong format. That freedom is why power users love it. It's also why a messy week can leave you with contexts nobody filters on. A structured app takes that job off your hands.

A rough rule. Phone-first and private: local database. Desk-first and you like tinkering: plain text. Many devices or a team: cloud.

A five-minute test for the app you use now

You don't need to read source code to find out where your data lives. Try this on whatever you use today.

  1. Turn on airplane mode and capture a task. Does it save? Does it still show up after you close and reopen the app? If not, the real copy lives on a server.
  2. Look for an export. Then actually run it. Open the file. Is it something you could read, or import elsewhere, without the original app?
  3. Check the sign-up screen. If the app needs an account before your first task, ask why. An account usually means a server, and a server usually means your data is on it.
  4. Read the shutdown story. Search the app's name plus "shut down" or "export before". Apps that have closed before tell you a lot about how exits are handled.

If your current setup passes all four, you're in good shape whichever of the three models it uses. If it fails two or more, it's worth knowing what you'd lose before you need to find out.

Where Trayzero keeps your GTD data

Trayzero is the SQLite option, all the way down. Everything you capture lives in a local SQLite database in the app's private storage on your phone. There's no Trayzero server, no cloud sync and no account. The app is free with every feature included, has no ads, and is open source under GPLv3, so you can check the storage code yourself.

That gets you the fast filters and crash-safe writes from above, with the ownership of a plain-text file. And because a binary database can feel less "yours" than a text file, Trayzero can export a plain-JSON backup any time. It's readable, it's portable, and it's how you move to a new phone: export on the old one, import on the new one.

Two honest limits:

  1. No sync, on purpose. Moving between devices means restoring a JSON backup there. Trayzero can write automatic backups to a folder you choose (iCloud Drive, Google Drive, a Syncthing folder) and keeps the latest 10, but that is backup, not sync.
  2. Phone only. Trayzero runs on Android and iOS. There's no desktop app. If you plan at a desk and want your lists on a laptop too, a todo.txt or Org mode setup synced through a folder will serve you better, and a cloud app will serve you better still if you also share with a team.

If your GTD system lives in your pocket and you'd rather nobody else hold it, that's the case Trayzero is built for.

Sources

  1. SQLite: Appropriate uses for SQLite — SQLite does not compete with client/server databases; it competes with fopen(). Widely used as an application file format with a well-defined, cross-platform, stable file format.
  2. SQLite: Transactional — Transactions are atomic even if interrupted by a program crash, an operating system crash, or a power failure.
  3. SQLite: Recommended Storage Format — SQLite is a Recommended Storage Format for datasets according to the US Library of Congress.
  4. SQLite: Long Term Support — The developers intend to support SQLite through the year 2050.
  5. Todo.txt — A simple set of rules that make a todo.txt file both human and machine-readable; supports priorities, creation and completion dates, projects and contexts; completed tasks can be archived to done.txt.
  6. Org mode — A structured plain-text file format for notes, planning and projects.
  7. Orgzly Revived: source code and README (GitHub) — Android outliner that stores notebooks as plain-text Org mode files; syncs with a device directory, WebDAV or Dropbox.
  8. Why I use plain text files (Face Dragons) — Plain-text files stay readable in any editor and work with line-by-line version control such as Git.
  9. SQLite or flat text file? (Stack Overflow) — Flat files get slower to search and update as they grow; a database indexes data and handles complex queries.
  10. Comparing local-first frameworks and approaches (Neon, dev.to) — Cloud-first apps keep the source of truth on a server and depend on the network; local-first apps keep it on the device.
  11. Local-first software: you own your data, in spite of the cloud (Ink & Switch) — Kleppmann et al., Onward! 2019. Cloud apps make the server the owner of your data; when a service shuts down, the data can go with it.
  12. A beginner's guide to local-first software development (OpenReplay) — Server storage puts user data in a third party's custody; local-first keeps it on the user's device.
  13. Trayzero: official site — Android and iOS; free, no ads, no account; everything in a local SQLite database in the app's private storage; no Trayzero server and no cloud sync; plain-JSON backup export and import; open source (GPLv3).
  14. Trayzero: source code and README (GitHub) — Free, private, local-first GTD task manager for iOS and Android. No account, on-device, GPLv3.

Keep reading