[PR #3311] [CLOSED] fix: workaround for massive arrays #4257

Closed
opened 2026-02-22 18:35:28 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3311
Author: @t2tx
Created: 2/21/2025
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • b37ecaa for projects in gitlab subgroup (#3075)
  • 6c09e2c fix: false condition
  • b4b2ac4 refactor pattern matching logic
  • be9aef4 Merge branch 'master' into master
  • efbaa68 Merge branch 'Mintplex-Labs:master' into master
  • e0ef9e9 Merge branch 'Mintplex-Labs:master' into master
  • e5584f9 split massive arrays ( workaround for 'error: addDocumentToNamespace Invalid string length'
  • e2b7443 Merge branch 'Mintplex-Labs:master' into master
  • cbb6767 split by string size. handle delete massive records from db
  • 179b7b9 Merge branch 'Mintplex-Labs:master' into master

📊 Changes

2 files changed (+63 additions, -6 deletions)

View changed files

📝 server/utils/files/index.js (+57 -5)
📝 server/utils/vectorDbProviders/lance/index.js (+6 -1)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #3234

What is in this change?

Split massive arrays to avoid string length error of JSON.stringify()

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3311 **Author:** [@t2tx](https://github.com/t2tx) **Created:** 2/21/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`b37ecaa`](https://github.com/Mintplex-Labs/anything-llm/commit/b37ecaaccbfe477408347bca15bb88817c4bfaef) for projects in gitlab subgroup (#3075) - [`6c09e2c`](https://github.com/Mintplex-Labs/anything-llm/commit/6c09e2cf26c4d4798bd545b933ba1dd1fea7abd3) fix: false condition - [`b4b2ac4`](https://github.com/Mintplex-Labs/anything-llm/commit/b4b2ac4c95b0bae47c547117995b1c1e4712acd5) refactor pattern matching logic - [`be9aef4`](https://github.com/Mintplex-Labs/anything-llm/commit/be9aef4d390cc3a3ed1864c3ce18975426d273d7) Merge branch 'master' into master - [`efbaa68`](https://github.com/Mintplex-Labs/anything-llm/commit/efbaa681cff11d2b226280e245550672fb34e6fd) Merge branch 'Mintplex-Labs:master' into master - [`e0ef9e9`](https://github.com/Mintplex-Labs/anything-llm/commit/e0ef9e95581fd331c7c0a0892270f0d13f3f7a4e) Merge branch 'Mintplex-Labs:master' into master - [`e5584f9`](https://github.com/Mintplex-Labs/anything-llm/commit/e5584f99a48d78434d79818b07cdfc1428c37a6b) split massive arrays ( workaround for 'error: addDocumentToNamespace Invalid string length' - [`e2b7443`](https://github.com/Mintplex-Labs/anything-llm/commit/e2b744353db3d90e18961474f68f6179f932b763) Merge branch 'Mintplex-Labs:master' into master - [`cbb6767`](https://github.com/Mintplex-Labs/anything-llm/commit/cbb676784513ba8685e66bea204461b17e75bad2) split by string size. handle delete massive records from db - [`179b7b9`](https://github.com/Mintplex-Labs/anything-llm/commit/179b7b9f9df9bcfea5c7a984105461ae4e957a48) Merge branch 'Mintplex-Labs:master' into master ### 📊 Changes **2 files changed** (+63 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/files/index.js` (+57 -5) 📝 `server/utils/vectorDbProviders/lance/index.js` (+6 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #3234 ### What is in this change? Split massive arrays to avoid string length error of JSON.stringify() ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:28 -05:00
yindo closed this issue 2026-02-22 18:35:28 -05:00
yindo changed title from [PR #3311] fix: workaround for massive arrays to [PR #3311] [CLOSED] fix: workaround for massive arrays 2026-06-05 15:17:39 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4257