axapta中删除记录非常慢

发布于 2024-09-07 09:50:04 字数 519 浏览 3 评论 0原文

我在 ax 2009 中有一个表单,显示表的过滤记录(总共约 5.000.000 条记录,约 1000 条显示已过滤)。 在表单中选择几个记录并通过表单控制 (alt+f9) 删除它们非常慢。 一条记录立即删除,选择20条左右需要几分钟! 桌子上只有一个删除操作 - 知道什么会阻碍该操作吗?

编辑:

相关表有两个索引,两者都不允许重复。第一个是整数字段的索引,第二个是三个字段的组合。

createRedIdIndex 未激活。

该过滤器使用 queryBuildRange 中的一列 (employeeID)。

deleteAction:另一个表(B)引用所提到的表(A)的id(已索引)。 A 对 B 有一个删除操作。设置为“级联”

这两个表通过 id 字段关联。

这些关系可以通过索引来解决。

我想要删除的记录数量只有大约 20 条 - 所以我不同意“要删除的数据量”太大的想法!

I've got a form in ax 2009, showing filtered records of a table (about 5.000.000 records total, about 1000 shown filtered).
Selecting a couple of those records in the form and deleting them via form-control (alt+f9) is very slow.
One record is deleted immediately, selecting about 20 takes several minutes!
There is only one deleteAction on the table - any idea what could thwart the operation?

edit:

The regarding table has two indices, both don't allow duplicates. First one is an index on an integer field, second one is a combined one of three fields.

createRedIdIndex is not activated.

The filter makes use of one column ( employeeID ) in a queryBuildRange.

deleteAction: another table (B) references the id ( indexed ) of the mentioned table (A). A has a deleteAction on B. setting is "cascade"

The two tables are related via id-field.

The relations can be resolved by an index.

And it's only an amount of about 20 records I want to delete - so I don't go in line with the idea, that the "to-delete-data-amount" is too big!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

殤城〤 2024-09-14 09:50:04

另请查看此链接

考虑

grid.autoSizeColumns(false);

按照文章中的建议添加。

Also have a look on this link.

Consider adding

grid.autoSizeColumns(false);

as suggested in the article.

雨后彩虹 2024-09-14 09:50:04

在 AX 中诊断数据库性能问题,在 SQL 选项卡页的 Tools\Setup 中启用 SQL 跟踪。

Do diagnose database performance issues in AX, enable SQL tracing in Tools\Setup in the SQL tab page.

心如荒岛 2024-09-14 09:50:04

使用代码分析器查看时间用在哪里。

Use the code profiler to see where the time is used.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文