bonjour
Je cherches information concernant l'utilisation
de "update statistics with sampling=XXX"
On parle bien dans la documentation que c à utiliser sur des grosses tables
Dans mon cas, je me suis fié à la volumétrie de la table et non au nb de lignes
Votre avis ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 select @Total_MB case when @Total_MB < 1000 then select @sampling="100" when @Total_MB >= 1000 and @Total_MB < 3000 then select @sampling="90" when @Total_MB >= 3000 and @Total_MB < 5000 then select @sampling="80" when @Total_MB >= 5000 and @Total_MB < 7000 then select @sampling="70" when @Total_MB >= 7000 and @Total_MB < 10000 then select @sampling="60" when @Total_MB >= 10000 then select @sampling="50" end
Merci
Partager