DBExport by Archive Date problem

Forum Home Forums New Ideas DBExport by Archive Date problem

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9748
    zjc674810017
    Participant

    Hi Mikhail
    I want to export date to my DB on particular time interval, and I want to choose which archive date I want to export, Current date, Minute date or Hourly date if possible.

    I dont know how to achieve this. In the official roadmap page, there is example code but it didnt work.

    #9751
    Mikhail
    Moderator

    Hi,

    The existing Export to DB module exports data when it comes from Communicator to Server application. If you can’t run export manually, share screenshots of your settings, and how you send an export command.

    The fixed period mode will be supported in Rapid SCADA 6. It will support PostgreSQL archives out of the box.

    #9964
    zzz
    Participant

    Not sure about PostgresSQL, but I tried TimescaleDB which is postgres based. The lesson I have learnt is that I should have use influxdb2 in the first place.

    The timescaledb database exploded in size very quickly in 2 weeks (first sync all archive (600chs/30s, 1+year), then 600chs/5s live insertion left on for days), tried all compression tricks mentioned in doc (I re-created and re-imprted the data archive several times taking hours and hours just to make sure, I didn’t mis-operate), nothing helped much. The size droped by 2/3 when switched to influxdb2, and the increament in size also slowed down. After all data in RapidScada archive has been imporpted via socketapi into Influxdb2 the size is bigger than RS’s native format, but not so much – not at all, considering the tradeoff for the abiltiy to use the advanced timeseries analytic queries and customized downsampling.

    I use postgresql very often, I have nothing against it, This is just a friednly aheadsup for my wasted 1 week in dealing with this mess. Maybe a benchmark or some reasearch on scalablity on the setup will turn out to be benificial.

    Timescaledb’s insertion speed is notably faster c.f. influxdb2 in my test. The query performance was initally on par after the db has the right partitioning, but performance decreases notably for some query when the size quicly become unmanagable…

    #9972
    Mikhail
    Moderator

    Useful experience. Thank you for sharing it.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.