Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking design
Message
De
24/02/2015 06:21:09
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
23/02/2015 18:19:05
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01615752
Message ID:
01615763
Vues:
30
>The only way I have found so far that would be certain that I do not have duplicate record is to create a task with the minimum interval, thus it would run every 15 seconds. That task will simply have a responsibility to create the daily record. If other robots are in need of the daily record and it would not be yet available, that would be from midnight + 15 seconds, I could establish a 15-second wait time with a retry to grab the daily record after, as it would then be created from the new task.
>
>If someone has an alternate design, I would be happy to see if I can use it.

candidate index on date of dayly rec and robots not thrown by error from dupliacte creation tries come to mind

update: If Upsert/Merge can be made to work, it might be less code and be cleaner as it should delegate handling to the server. Upsert not in all SQL dialects might be a show stopper.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform