Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It takes extremely long (10-20 minutes) to change the view period on the chart. #746

Open
microdeth opened this issue Mar 20, 2023 · 13 comments

Comments

@microdeth
Copy link

Hi, on the historical chart containing the temperature and humidity data when I switch from the last 8 hours to last 3 days, for example, it takes 10-20 minutes. Overall object scheme contains less than 10 data points, only device is connected is our self-designed PLC which have OPC UA onboard.
Thanks,
Dima.

@microdeth
Copy link
Author

microdeth commented Mar 20, 2023

Server runs at R5 5400U (8GB RAM), client is i7 11700 notebook (16GB Ram). Server = Windows Server 2016, Client = Windows 11

@unocelli
Copy link
Member

Hi, sorry for the delay.
we would be very grateful if you would try to investigate in more detail, console error of the frontend and backend, how many tags are you saving? have you tried to re-initialise everything by deleting the current database (_db folder)

@unocelli unocelli added the need investigation need investigation label Mar 29, 2023
@microdeth
Copy link
Author

microdeth commented Mar 31, 2023 via email

@unocelli
Copy link
Member

Hi, sorry for the delay again. Thanks for your investigation.
I would like to have a look at the archived files. can you share it with me?
have you tried influxdb?

@microdeth
Copy link
Author

Hi, thanks for your answer.
You can find the archive files here: https://microdeth.tplinkdns.com/owncloud/s/uIcINRiOBBtkHAA
How can I try 'influxdb'?

Best regards,
Dima.

@unocelli
Copy link
Member

Hi, sorry for the delay.
Thanks for the archive files, we will take a look soon.
About influxdb: you have to install it and configure the access value (token and bucket) to insert in FUXA-Settings
image

@microdeth
Copy link
Author

microdeth commented Apr 22, 2023 via email

@unocelli
Copy link
Member

is there any news?

@885669801
Copy link

有消息吗?

Hello, has your problem been solved? How to solve it?

@andy8601
Copy link

I also have similar problems, and the problem of using influxDB is still the same, which can be stored once a second. At the current test stage, there are only about 5 variables, and the data can be refreshed within a few hours. After more than one day, it takes about 15 seconds to refresh the data of the last 8 hours, during which the page is stuck, and the background will not record the updated stored data. It is necessary to wait until the refresh is successful before re-recording the data, influxDB itself has a similar curve chart function, and the refresh speed is very fast, I think there is still something wrong, although I do not understand. If you really can't solve this problem, I suggest that the curve function does not call all curve data by default, and you need to manually check the curve data, I believe it will be greatly improved.

@andy8601
Copy link

andy8601 commented Apr 23, 2024

The problem has always existed. I tried to replace a server with a higher hardware configuration, and some improvements have been made. At present, the data in the last 8 hours of refreshing has been reduced from the original 15 seconds to 6 seconds. In fact, there is only one core in the work of computing, so it caused the delay. I know that node.js has a “Cluster core” module, but I don't understand it very well. @unocelli Hope you solve this problem soon! @unocelli

@unocelli
Copy link
Member

Hi, storage on sqlite is file-based, which has several performance disadvantages, it also depends on the split size of the files, the amount of files in the history...I think it would be more acceptable if we split the range into small queries that populate the diagram as in realtime.
Concerning influxdb: currently the queries go through the FUXA server, we should try querying the database directly.

@unocelli
Copy link
Member

unocelli commented Nov 5, 2024

Hi, The configuration of the DAQ history is decisive. I just added the partial query results for the DAQ data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants