Slow SQL query performance after integrating external data source with ThingWorx mashups

sharma_king
Sat, 07 Jun 2025 09:09:51 +0000

SELECT * is your first problem. Never select all columns when you only need a few. Specify exact columns needed for your dashboard. Also, make sure timestamp and line_id columns are indexed in SQL Server. Without indexes, you’re doing full table scans on 5 million rows.