Performance on AD_ChangeLog : some ideas

58 views
Skip to first unread message

Nicolas Micoud

unread,
Jun 10, 2024, 5:09:31 AMJun 10
to iDempiere
Hi,
When opening the RecordInfo panel, I sometimes have to wait for a long time (I never timed it), but I have the impression this waiting is since we migrate to v11.
Checking code and DB, I have some ideas/suggestions to improve

The where clause of the WRecordInfo panel is now

WHERE AD_Table_ID=? AND (Record_ID=? OR Record_UU=?)

(it was WHERE AD_Table_ID=? AND Record_ID=? before https://idempiere.atlassian.net/browse/IDEMPIERE-5567)


So wouldn't it be better to remove the OR and have a where clause that will be

WHERE AD_Table_ID=? AND Record_ID=?
or
WHERE AD_Table_ID=? AND Record_UU=?

according to values of Record_ID / Record_UU (I mean no need to test Record_UU if we have a Record_ID, so the OR part can be removed safely)

I also see a AD_CHANGELOG_SPEED index (AD_TABLE_ID, RECORD_ID)
Does it make sense to add a AD_CHANGELOG_SPEED_UU (AD_TABLE_ID, RECORD_UU) ?

wdyt?

Thanks,

Nicolas

Norbert Bede

unread,
Jun 10, 2024, 7:48:54 AMJun 10
to iDempiere
Hi Nicolas

use table partitioning.

Norbert

Carlos Antonio Ruiz Gomez

unread,
Jun 10, 2024, 11:33:20 AMJun 10
to idem...@googlegroups.com
Hi Nicolas, I think your suggestions make sense, please open a ticket for that and I'll take a look when possible.

Regards,

Carlos Ruiz



Am 10.06.24 um 11:09 schrieb Nicolas Micoud:

Nicolas Micoud

unread,
Jun 11, 2024, 1:59:09 AMJun 11
to iDempiere
Hi Carlos

I've added it to the TODO list, not sure when I'll be able to have a look

Nicolas
Reply all
Reply to author
Forward
0 new messages