You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension provides the core application logic and data persistence for the LLMs platform.
4
-
5
-
## Data Storage & Architecture
6
-
7
-
### Server-Side SQLite Migration
8
-
The application has migrated from client-side IndexedDB storage to a robust server-side SQLite solution. This architectural shift ensures better data consistency, improved performance, and enables multi-device access to your chat history.
9
-
10
-
### Asset Management
11
-
To keep the database efficient and portable, binary assets (images, audio, etc.) are not stored directly in the SQLite database. Instead:
12
-
- All generated assets are stored in the local file system cache at `~/.llms/cache`.
13
-
- The database stores only **relative URLs** pointing to these assets.
14
-
- This approach allows for efficient caching and serving of static media.
15
-
16
-
### Concurrency Model
17
-
To ensure data integrity and high performance without complex locking mechanisms, the system utilizes a **single background thread** for managing all write operations to the database. This design improves concurrency handling and eliminates database locking issues during high-load scenarios.
18
-
19
-
### Multi-Tenancy & Security
20
-
When authentication is enabled, data isolation is automatically enforced. All core tables, including `threads` and `requests`, are scoped to the authenticated user, ensuring that users can only access their own data.
0 commit comments