Does COPY lock my TimescaleDB database with 70k chunks?
I am using TimescaleDB in an Azure VM for an IoT database. I need to export data in CSV format using the COPY
method, but I have around 70,000 chunks in my hypertable. My concern is whether executing COPY
to export data locks the database, as it is actively running.
I specifically need data for the top 2,000 most active users from the past year to analyze seasonal variations. The data should include user profile details and device ID for analysis.
If COPY
locks the database, what would be a better alternative to export this data efficiently without impacting database performance?
I don’t need to back up the entire database—just the necessary dataset for analysis. Any recommendations on efficient querying or export methods would be helpful.
Thanks in advance!