Hi Guys, I am fairly new here. I have created an app which gets data from the sql server and streams using ColumnDataSource. I have used the stream option in CDS to keep the data limited.
I am also using periodic callbacks to update this data and the plots.
However, the plotting functions take slightly longer at every iteration. The update function looks something like this.
figure.line(x = ‘x’, y = ‘y’, source = CDS)
The get_data_from_server part takes equal time at each iteration. (It basically filters the data from sql and streams it to CDS)
plot_data() takes more time at every iteration(0.01 secs more at each iteration) which I dont understand as the size of data in CDS is same because of CDS. After about 200 iterations the time required is more than 3 secs for each iteration.
I am using bokeh serve --show command in anaconda to run the server. Once the plots take more time, I reset the server manually using ctrl+c. Then it runs much more quicker (0.8 secs) per iteration, however the time slowly increases.
Any help is appreciated! Cheers!