axapta中删除记录非常慢
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
另请查看此链接。
考虑
按照文章中的建议添加。
Also have a look on this link.
Consider adding
as suggested in the article.
在 AX 中诊断数据库性能问题,在 SQL 选项卡页的 Tools\Setup 中启用 SQL 跟踪。
Do diagnose database performance issues in AX, enable SQL tracing in Tools\Setup in the SQL tab page.
使用代码分析器查看时间用在哪里。
Use the code profiler to see where the time is used.