Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by wvenable

11 hours ago

It's the optimizer caching the query plan as a parameterized query. It's not re-planning the index lookup on every execution.

2 comments

wvenable

Reply

SigmundA  11 hours ago

The parameter type is part of the cache identity, nvarchar and varchar would have two cache entries with possibly different plans.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities