What does recompile mean in SQL?

What does recompile mean in SQL?

If a database undergoes significant changes to its data or structure, recompiling a procedure updates and optimizes the procedure’s query plan for those changes. When SQL Server executes procedures, any parameter values that are used by the procedure when it compiles are included as part of generating the query plan.

What does it mean to recompile?

to compile again
transitive + intransitive. : to compile again Last year’s revival of composer Joseph Rumshinsky’s Yiddish classic was made possible by the work of musicologist Michael Ochs, who labored for the better part of a decade recompiling the lost work after it slid into obscurity.—

How do I recompile in Python?

You just have to run python -m compileall again. It will overwrite older . pyc files. You can pass it the -f switch to force rebuild even if timestamps are up to date (as per the documentation).

What is the synonyms of compiled?

In this page you can discover 44 synonyms, antonyms, idiomatic expressions, and related words for compile, like: collate, consolidate, amass, concentrate, recapitulate, bring together, draw together, digest, dissemble, arrange and edit.

What does it mean to recompile a function in SQL Server?

Applies to: SQL Server (all supported versions) Azure SQL Database Causes stored procedures, triggers, and user-defined functions to be recompiled the next time that they are run. It does this by dropping the existing plan from the procedure cache forcing a new plan to be created the next time that the procedure or trigger is run.

When to recompile a stored procedure, trigger, or function?

If object is the name of a stored procedure, trigger, or user-defined function, the stored procedure, trigger, or function will be recompiled the next time that it is run.

Which is event logged instead of SP recompile?

In a SQL Server Profiler collection, the event SP:CacheInsert is logged instead of the event SP:Recompile. The qualified or unqualified name of a stored procedure, trigger, table, view, or user-defined function in the current database. object is nvarchar (776), with no default.

When to use recompile query hint in SQL Server?

If certain queries in a procedure regularly use atypical or temporary values, procedure performance can be improved by using the RECOMPILE query hint inside those queries. Since only the queries using the query hint will be recompiled instead of the complete procedure, SQL Server’s statement-level recompilation behavior is mimicked.