Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do you recycle records in SQL Server?
Message
 
 
À
30/12/2015 17:30:14
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01629442
Message ID:
01629496
Vues:
52
Thank you.

>If it is more than a touch-up, definately do it only if perf problems occur. Do not expect those - if they occur, you probably have a special edge case. But they do exist ;-))
>Break out your code into a module you can reactivate if need arises: for me working on code I already grokked gives a speed boost factor of 3 to 5.
>
>
>>You make a very valid point as far as "the code is long enough in use it should be bug free". But what prompted my question is that I have to re-write the entire routine/code because I am dropping a certain feature (learning from Microsoft :)). And as I re-write this feature I am deciding what to keep and what to drop.
>>Thank you.
>>
>>>The real question - besides simplifying code - is whether keeping the old records in their place on disk will minimize access time (for old HDs, mostly head movement) or wear level (for heavily used SSDs). As indexing strategy (including PK generation) plays a role, difficult to say IMO, if not premature optimization. OTOH, if the code is long enough in use it should be bug free, so eliminating will reduce the amount of code worked upon only minimally.
>>>
>>>>SQL Server does not keep deleted records like VFP does. If you delete a row, it is removed by SQL Server. Recycling records is something that isn't done in SQL Server.
>>>>
>>>>
>>>>>I know; I was not using RECALL (in VFP). I am setting a certain field value to 'D' and then look for these records (with 'D') and set the value back to empty. So my recycling (in VFP) is not Delete/Recall. So I could, in theory, apply it to SQL Server. But I am trying to simplify my code; hence this question.
>>>>>Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform