Query taking too much resourses on the database

Started by isoftcom, November 19, 2018, 04:00:16 PM

Previous topic - Next topic

isoftcom

Hi All,

The Query "INSERT INTO tdata_122 (item_id,tdata_timestamp,record_id) VALUES (:1,:2,:3)" is very expensive, it causes all sorts of problems with the Database including the creation of deadlocks and waits. Isn't there a way we can optimize it so as to make is less expensive on resources.

Victor Kirhenshtein

HI,

we need much more detailed problem description to attempt to fix that. This query is one of the most common (save collected DCI data). What database you are using? How big is your database and this table? Could you provide execution plan for it? Is problem only with idata_122 table or with other idata_ tables as well? Do you have active reads from that table (it could be charts refreshed very often or some scripts reading collected data)?

Best regards,
Victor