Alert Table Filling Up - Need to delete rows

Custom indicators, trading strategies, data export and recording and more...
rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Alert Table Filling Up - Need to delete rows

Post by rickbarlow » Thu Mar 10, 2022 5:07 pm

Hi,
My indicator uses alot of memory, and I'm trying to find ways to reduce it. I use alot of drawing functions, and some tables, and I also use the built in Sound Alerts, which dumps messages into the Alerts table.
There are times where I sends alot of alerts, seems to be happening alot more because some ALGO's that I'm finding to be running.

I want to DELETE entries in the alert table, so I was looking for an API to do so. I found this Cancel below, but it seems to just stop the Sound from playing, and doesn't DELETE it from the alert table. Do you have any API that can perform the delete function, so that I can periodically empty rows from the table without shutting down Bookmap?


public final Layer1ApiSoundAlertCancelMessage.Layer1ApiSoundMessagesFilter

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Alert Table Filling Up - Need to delete rows

Post by Svyatoslav » Fri Mar 11, 2022 3:45 pm

If I'm not mistaken, bookmap 7.3 will automatically delete oldest rows, so in terms of memory leak - that should not be an issue, unless there is a bug. In either case, I recommend to take a heap dump and take a look at what's actually using memory.

Post Reply