Logseq logoLogseq
  1. Home
  2. Guide
  3. Logseq DB

Logseq DB: what the database version changes

The 2.0 beta moves Logseq from folders of Markdown files to a local SQLite database. Here is what that gains, what it costs and how to migrate without losing sleep.

[[Logseq DB]]06 November 20269 min read2,085 words
Stacked database discs beside a table of tagged blocks with typed properties

For most of its life, Logseq stored your knowledge as plain text: one Markdown or Org-mode file per page, gathered in a folder you chose. Logseq DB — the database version — changes that foundation. Your blocks now live in a local SQLite database, and that shift unlocks features the file format could never support cleanly. It also changes how you back up, sync and migrate.

This guide explains what the DB version is, what it adds, what is different, and how to move a real graph across safely. It reflects the state of the project in November 2026.

A short timeline

  • 2020–2025: Logseq grows as a file-based outliner. Pages are Markdown or Org files; an in-memory database built from those files powers search, queries and the graph.
  • Late 2024: the team invites backers to alpha-test the database version and real-time collaboration.
  • 2025 into 2026: regular changelogs on the Logseq forum describe work on large-graph performance, a command-line tool, sync reliability and mobile.
  • 1 December 2025: version 0.10.15 ships for file graphs.
  • 13 July 2026: the first public Logseq 2.0 beta (DB version) arrives, tagged 2.0.1 on GitHub. The release notes say Logseq is splitting into two versions.
  • 7 October 2026: 2.0.2 follows, again labelled beta testing.

The naming settled along the way. The file-based app is commonly called Logseq OG, and the database version carries the Logseq name going forward.

Why move to a database at all?

File graphs are wonderful for ownership: you can open any page in a text editor, put the folder under Git and read it in fifty years. They become harder at scale and under concurrency.

  • Parsing cost. Every page must be read and parsed to rebuild the in-memory index. Large graphs mean slower startup and occasional re-indexing.
  • Ambiguity. A file can be edited by another app or a sync service at any moment, so the app must reconcile what it thinks is true with what is on disk.
  • Limited types. In a text file, rating:: 4 is just characters. Making it a reliable number, date or link requires conventions rather than guarantees.
  • Collaboration. Merging two people’s edits to the same Markdown file is fragile. Merging operations on a database is a solvable problem.

A database makes the graph itself the source of truth. That is the trade the DB version makes.

What is new in DB graphs

Typed properties

Properties have types. A property can hold text, a number, a date, a checkbox, a URL or a reference to another page. Because the type is known, filtering and sorting behave predictably: a “due” property sorts as dates, a “rating” as numbers. Properties can also have a fixed list of choices, which keeps values consistent across hundreds of pages.

Tags that act like classes

In file graphs, a tag is simply a link to a page. In DB graphs, a tag can define a kind of thing. Tag a page #Book and it can come with the properties a book needs — author, status, started, rating. Tag a block #Person and it gains the fields you defined for people. Tags can inherit from other tags, so #Novel can extend #Book.

This is the most important conceptual change. It turns Logseq from a linked outliner into a lightweight personal database without forcing a schema on notes that do not need one.

Better queries and views

With types and classes in place, queries return cleaner tables. A page tagged #Book can list every book with its properties as columns, and filters can work on real dates and numbers. Advanced Datalog queries remain available for anything the visual tools do not cover.

Real-time collaboration (RTC)

DB graphs have a new sync approach called RTC. It keeps a graph in step across the desktop app, the browser and the new mobile app, and it lets several people edit the same graph. At the time of writing, RTC is in alpha and available to active Open Collective backers; it is covered in more detail in our Logseq Sync guide.

A new mobile app

The DB version has its own native mobile app, starting on iOS through TestFlight. An Android APK is attached to the 2.0.2 release on GitHub, while the project still describes Android support as early. Treat both as test builds.

Command-line tooling

Changelogs through spring 2026 describe a command-line tool that can query graphs, run backups using the same implementation as the desktop app, and is bundled with desktop releases. It is aimed at power users and automation rather than everyday writing.

What stays the same

The everyday experience is still Logseq:

  • You write in blocks, indent with Tab and zoom into branches.
  • Journals open on today’s date.
  • [[Page links]], tags, block references and embeds work as before.
  • Linked and unlinked references appear beneath every page.
  • The graph view still draws your notes as a network.

Most people notice the new property and tag tools first, then gradually realise that search and large pages feel faster.

What is different — and what to watch

Your files are no longer the canonical copy. In a DB graph the SQLite database is the truth. Logseq can export to Markdown, and changelogs from 2026 describe a round-trip between DB graphs and Markdown files on disk, but you should not plan on editing notes in another text editor and expecting them to flow back automatically.

Some features differ. Early in 2026 users noted that the PDF reader was not yet available in DB graphs, and some file-graph conventions behave differently. Check the release notes for the specific tools you rely on.

Plugins may need updates. The plugin API evolves with the DB version. Popular plugins may lag behind; test your essential ones before migrating.

Beta means beta. The Logseq README states that the DB version is in beta while the new mobile app and RTC are in alpha, that data loss is possible, and that automated backups or regular SQLite backups are recommended.

How to migrate a file graph safely

The importer turns an existing file graph into a DB graph. Approach it like moving house: pack carefully, keep the old place for a while, and check the boxes on arrival.

  1. Back up the folder. Copy your entire file-graph folder somewhere safe, ideally under version control or in a dated archive.
  2. Install the 2.0 beta. Download it from the official Releases page on GitHub. Keep your file-based app installed if you still need it.
  3. Import into a new DB graph. Use the importer to create a fresh DB graph from a copy of your folder — never your only copy.
  4. Audit the essentials. Open your most important pages, check properties and dates, run your key queries and confirm that block references resolve.
  5. Convert conventions gradually. Decide which tags should become classes and which properties deserve types. Start with one area, such as books or people, and expand.
  6. Set up backups before daily use. Configure automated backups or a scheduled copy of the database, and test a restore at least once.
  7. Run in parallel for a few weeks. Keep the original file graph untouched until you trust the new one.

If anything goes wrong, the original folder remains your fallback, and the community forum has threads explaining how to return from a DB graph to Logseq OG.

A worked example: a reading log in a DB graph

To see what the new model feels like, imagine rebuilding a reading list — something almost every Logseq user keeps.

In a file graph you might write type:: book, author:: [[Sönke Ahrens]] and status:: reading as text properties on each page, then run a query for pages where type is book. It works, but nothing stops one page from saying status:: Reading, another status:: in progress and a third forgetting the property entirely.

In a DB graph you create a #Book tag once and give it properties:

  • Author — a reference to a page, so authors become linkable people.
  • Status — a fixed set of choices: To read, Reading, Finished, Abandoned.
  • Started and Finished — dates, so they sort correctly.
  • Rating — a number from one to five.

Now every page you tag #Book offers exactly those fields. Your reading-log page becomes a single query that shows a clean table, sorted by finish date, filterable by status, with author names that link to everything else you have written about those people. Notes taken while reading still live in journals and link to the book page as before — the structure sits alongside the outline instead of replacing it.

The same pattern works for people, meetings, projects, recipes or experiments. That is the practical promise of the database version: conventions you used to enforce by memory are now enforced by the graph.

A short glossary

  • Graph — one knowledge base. You can keep several and switch between them.
  • File graph / Logseq OG — a graph stored as Markdown or Org files in a folder.
  • DB graph — a graph stored in a local SQLite database, available in the 2.0 beta.
  • Block — a single bullet with its own identity, the basic unit in both kinds of graph.
  • Tag (class) — in DB graphs, a tag that defines a kind of thing and its properties.
  • Typed property — a property whose values have a known type, such as date or number.
  • RTC — real-time collaboration, the sync and multi-user system for DB graphs.

Should you switch now?

Switch now if you are excited by typed properties and classes, mostly work on one desktop, keep disciplined backups and are comfortable reporting bugs. Early adopters shape how the stable release behaves.

Wait if your graph is mission-critical, you depend on file-level tools such as Git diffs or external editors, you rely on the PDF workflow or particular plugins, or you need dependable mobile sync today.

Try it alongside if you are unsure. Create a small DB graph for one new project — a reading list or a research topic — and keep your main graph on files. You will learn the new model without betting your archive on it.

Backups for DB graphs

Backing up a database is different from backing up a folder of text.

  • Use the built-in backup. The desktop app and the command-line tool share one backup implementation, so scheduled backups behave like manual ones.
  • Keep copies off the machine. An external drive or a cloud folder protects against hardware failure.
  • Keep history, not just the latest copy. Dated snapshots let you return to a version from before a mistake.
  • Test a restore. A backup you have never restored is a hope, not a plan.
  • Export occasionally. A periodic Markdown export gives you a readable copy that does not depend on any app.

The bigger picture

The DB version is Logseq’s answer to the hardest problems a file-based outliner faces: speed at scale, structured data and collaboration. It keeps what made Logseq distinctive — blocks, journals, references and local-first storage — while adding the structure people previously built from conventions and plugins.

The cost is a period of transition. For a while there are two Logseqs, two kinds of graph and two mobile stories. If you understand that, plan your backups and migrate deliberately, the database version is the most significant upgrade the project has shipped.

Frequently asked questions

Is Logseq DB a separate app?

The DB version ships as the Logseq 2.0 desktop app. File graphs continue under the file-based line, often called Logseq OG, and the importer brings them into DB graphs.

Will file graphs stop working?

File graphs keep working, and the 0.10.x releases remain available. The release notes warn that people who stay on the older version should expect the roadmap to focus on the DB version.

Does the DB version still work offline?

Yes. The database is local, so writing, searching and querying work without a connection. Only optional services such as RTC need the network.

Where is the database stored?

The app manages the SQLite database in its own data location rather than in a folder you browse. Use the app’s backup and export features rather than copying internal files by hand.