3

我一直在尝试基于https://www.jfrog.com/blog/advanced-cleanup-using-artifactory-query-language-aql/实现工件清理过程......但发现 AQL真的很慢. 我已经看到查询在 24 小时后仍在运行,服务器固定在 100% cpu。

使用简单的 curl :

time curl -vv -u user:password -d "${query}" "http://server:8081/artifactory/api/search/aql"

我测量过:

items.find({"repo" : "ep-snapshots", "@milestone.keep": {"$ne" : "true"}, "@milestone.complete": {"$ne" : "true"}, "created": {"$before" : "3d"}}).limit(100)

33 分钟

items.find({"repo" : "ep-snapshots", "@milestone.keep": {"$ne" : "true"}, "@milestone.complete": {"$ne" : "true"}}).limit(100)

42 分钟

items.find({"repo" : "ep-snapshots", "@milestone.keep": {"$ne" : "true"}, "@milestone.complete": "false"}).limit(100)

574 分钟

是否有任何技术可以调查 AQL 的性能?有什么明显与上述不符的吗?

谢谢,

皮特

4

0 回答 0