Skip to content
Advertisement

Tag: query-optimization

Query slow when use count(*) and inner join

My query is taking around 5 seconds to run. It returns almost 5000 records. If I remove the Select Count(*) …, it runs very fast, but I need this data. Is there a way to improve this query? Thanks Answer Indexes recommended by Gordon Linoff are a must-have. Another thing you could to is move the computation from an inlined

Advertisement