Skip to main content

Large Documents

Learn about Notta's chunking technology and large document handling

⏱️ 6 minutes

Notta uses physical chunking cache technology to handle large documents, easily managing files with tens of thousands of lines.

What is Chunking

When opening a document, the system splits the content by line count into multiple "chunks," each independently cached to disk.

How Chunking Works

Original document (10,000 lines) split by line count:

  • Chunk 1 β†’ Lines 1–200
  • Chunk 2 β†’ Lines 201–400
  • Chunk 3 β†’ Lines 401–600
  • ...
  • Chunk 50 β†’ Lines 9801–10000

Chunk Parameters

ParameterDefaultDescription
Initial Chunk Threshold200 linesDefault lines per chunk when opening a file
Re-split Threshold300 linesAuto-split when a chunk exceeds this during editing
Normal Merge Threshold50 linesAttempt merge with adjacent chunk when below this
Force Merge Threshold10 linesForce merge when below this

Paginated Browsing

Since the document is split into chunks, the editor displays one chunk at a time. The pagination control bar at the bottom provides navigation:

  • PageUp / PageDown: Switch to previous/next page
  • Scroll to boundary: Automatically switches to adjacent chunk when scrolling to the top or bottom
  • Page indicator: Shows current page number and total pages

Re-chunking

During editing, if a chunk's content changes significantly (e.g., large paste or delete), the system automatically re-chunks:

  • Auto-split: When chunk content exceeds 300 lines, it splits into two chunks
  • Auto-merge: When chunk content falls below 50 lines, it attempts to merge with an adjacent chunk
  • Empty chunk removal: Automatically cleans up empty chunks during editing

During re-chunking, the editor area shows a semi-transparent overlay with a "Re-chunking..." message, which disappears when complete.

Cache Management

Chunk caches are stored in the user data directory:

PlatformCache Path
Windows%APPDATA%\Notta\.nota\chunks\
macOS~/Library/Application Support/Notta/.nota/chunks/
Linux~/.config/Notta/.nota/chunks/
  • Max cache size: 1 GB
  • Auto-cleanup: The system manages cache automatically

Next Steps

Large Documents | Notta - 智能 Markdown 编辑器