Order Changes Log Table

  • 11 November 2021
  • 3 replies
  • 85 views

Userlevel 7
Badge +10

I just learned today that in V15, changes to service orders are stored in the order_changes_log (Active) and c_order_changes_log (History) tables.

In previous versions of Alliance, these changes were stored in the demand (Active) and demand_done (History) tables and can be retrieved with the following queries:

select * from demand with (nolock) where demand.order_id = 'Order ID' and bpart_gcl_id = 'Mngt';


select * from demand_done with (nolock) where demand.order_id = 'Order ID' and bpart_gcl_id = 'Mngt';

For V15 and later, the Trans. Log entries can be found with the following:

select * from order_changes_log with (nolock) where order_id = 'Order ID'

select * from c_order_changes_log with (nolock) where order_id = 'Order ID'

 


3 replies

Userlevel 6
Badge +11

Thank you. Great info. We are currently upgrading from 12.5 to 15. And we have lots of customized reports - most of them in PowerBI. Going through them to update is “fun” - so I appreciate any info like this

Userlevel 5
Badge +7

We have also discovered this while upgrading our V10 customer to V15.  When we compared the demand table between before and after, the table size have extremely reduced.  It appeared that the database upgrade tool is moving those order change related records from demand table to order_changes_log table. And yes, we had to adjust some custom reports.

This change improves performance a lot as demand table is very large.  We had some cases where custom reports which use demand table affecting the whole system performance (It can bring down whole system!). 

 

Userlevel 2
Badge +1

Appreciate the information Andrew! Always nice to learn something new, especially when it comes to tracking down changelogs in the database.

Reply