<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[多租户知识库，应该一个 collection 还是每个租户一个？]]></title><description><![CDATA[<p dir="auto">SaaS 知识库，多租户隔离。一个 collection 加 tenant_id filter，还是每个租户一个 collection？</p>
]]></description><link>https://localaihub.com/topic/74/多租户知识库-应该一个-collection-还是每个租户一个</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:23:29 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/74.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 May 2026 05:33:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Tue, 05 May 2026 05:22:00 GMT]]></title><description><![CDATA[<p dir="auto">多租户最大坑不是方案选错，是代码某处绕过方案。</p>
]]></description><link>https://localaihub.com/post/393</link><guid isPermaLink="true">https://localaihub.com/post/393</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Tue, 05 May 2026 05:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Tue, 05 May 2026 03:51:00 GMT]]></title><description><![CDATA[<p dir="auto">权限测试要写成自动化。故意不传 tenant，应该直接失败，不是返回空。</p>
]]></description><link>https://localaihub.com/post/392</link><guid isPermaLink="true">https://localaihub.com/post/392</guid><dc:creator><![CDATA[leaf_1997]]></dc:creator><pubDate>Tue, 05 May 2026 03:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Tue, 05 May 2026 02:26:00 GMT]]></title><description><![CDATA[<p dir="auto">doc_id 设计带租户前缀，后面迁移会轻松。</p>
]]></description><link>https://localaihub.com/post/391</link><guid isPermaLink="true">https://localaihub.com/post/391</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Tue, 05 May 2026 02:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 23:53:00 GMT]]></title><description><![CDATA[<p dir="auto">那先一个 collection + 强制 tenant filter 可以，保留迁移到分 collection 的能力。</p>
]]></description><link>https://localaihub.com/post/390</link><guid isPermaLink="true">https://localaihub.com/post/390</guid><dc:creator><![CDATA[rootless]]></dc:creator><pubDate>Mon, 04 May 2026 23:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 23:16:00 GMT]]></title><description><![CDATA[<p dir="auto">我们早期租户几十个，单租户数据几千到几万 chunk。</p>
]]></description><link>https://localaihub.com/post/389</link><guid isPermaLink="true">https://localaihub.com/post/389</guid><dc:creator><![CDATA[JasonL]]></dc:creator><pubDate>Mon, 04 May 2026 23:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 21:51:00 GMT]]></title><description><![CDATA[<p dir="auto">资源隔离如果是硬要求，就不要全混一起。</p>
]]></description><link>https://localaihub.com/post/388</link><guid isPermaLink="true">https://localaihub.com/post/388</guid><dc:creator><![CDATA[小乔同学]]></dc:creator><pubDate>Mon, 04 May 2026 21:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 20:48:00 GMT]]></title><description><![CDATA[<p dir="auto">还有大租户影响小租户的问题。一个超大客户更新索引，会不会拖慢其他人？</p>
]]></description><link>https://localaihub.com/post/387</link><guid isPermaLink="true">https://localaihub.com/post/387</guid><dc:creator><![CDATA[小路灯]]></dc:creator><pubDate>Mon, 04 May 2026 20:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 20:01:00 GMT]]></title><description><![CDATA[<p dir="auto">可以把 tenant_id 封在 repository 里，业务层拿不到不带 tenant 的方法。</p>
]]></description><link>https://localaihub.com/post/386</link><guid isPermaLink="true">https://localaihub.com/post/386</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Mon, 04 May 2026 20:01:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 17:05:00 GMT]]></title><description><![CDATA[<p dir="auto">一个 collection 的风险是 filter 漏传就灾难。所以 SDK 层要强制 tenant，不允许裸 search。</p>
]]></description><link>https://localaihub.com/post/385</link><guid isPermaLink="true">https://localaihub.com/post/385</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Mon, 04 May 2026 17:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 14:29:00 GMT]]></title><description><![CDATA[<p dir="auto">会。collection 数量不是无限免费的，监控和配置也会爆。</p>
]]></description><link>https://localaihub.com/post/384</link><guid isPermaLink="true">https://localaihub.com/post/384</guid><dc:creator><![CDATA[MingK]]></dc:creator><pubDate>Mon, 04 May 2026 14:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 11:39:00 GMT]]></title><description><![CDATA[<p dir="auto">每个租户 collection 会不会太多？</p>
]]></description><link>https://localaihub.com/post/383</link><guid isPermaLink="true">https://localaihub.com/post/383</guid><dc:creator><![CDATA[小周]]></dc:creator><pubDate>Mon, 04 May 2026 11:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 10:20:00 GMT]]></title><description><![CDATA[<p dir="auto">安全上别只看向量库。对象存储、缓存、日志、评估样本都要带 tenant。</p>
]]></description><link>https://localaihub.com/post/382</link><guid isPermaLink="true">https://localaihub.com/post/382</guid><dc:creator><![CDATA[leaf_1997]]></dc:creator><pubDate>Mon, 04 May 2026 10:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 08:38:00 GMT]]></title><description><![CDATA[<p dir="auto">还要看运维动作。备份、删除、迁移、索引重建，按租户还是全局？</p>
]]></description><link>https://localaihub.com/post/381</link><guid isPermaLink="true">https://localaihub.com/post/381</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Mon, 04 May 2026 08:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to 多租户知识库，应该一个 collection 还是每个租户一个？ on Mon, 04 May 2026 07:39:00 GMT]]></title><description><![CDATA[<p dir="auto">租户少、数据量差异大、隔离要求高，可以每租户 collection。租户多且小，一个 collection 管理更省。</p>
]]></description><link>https://localaihub.com/post/380</link><guid isPermaLink="true">https://localaihub.com/post/380</guid><dc:creator><![CDATA[rootless]]></dc:creator><pubDate>Mon, 04 May 2026 07:39:00 GMT</pubDate></item></channel></rss>