punktde/elastic-assetusageinnodes

使用 Elasticsearch 而不是慢速数据库来计算资产使用情况。

2.0.0 2020-06-10 06:23 UTC

This package is auto-updated.

Last update: 2024-09-10 15:52:04 UTC


README

Travis Build Status Latest Stable Version Total Downloads

此包解决的问题

为了确定哪些资产被哪些内容元素使用,Neos 需要对 Neos ContentRepository 表的所有属性进行完整的类似搜索。对于较大的项目,当节点数量大于 100,000 时,这可能会变得非常慢。在媒体模块中单击资产可能需要一分钟以上。使用 /flow media:removeunused 命令查找未使用的资产可能需要数天。

解决方案

此包在 Elasticsearch 索引期间提取使用中的资产,并用快速有效的 Elasticsearch 查询替换昂贵的类似搜索。

安装

$ composer require punktde/elastic-assetusageinnodes