Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to do when user SQL Selects too much?
Message
De
21/03/2006 07:42:46
 
 
À
21/03/2006 06:59:17
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01105674
Message ID:
01106182
Vues:
29
Hi,

>A gun has a safety switch so it doesn't go off accidentally. But the safety can always be switched off. If you're being threatened by someone with a gun, how would you feel if the gun refused to fire?
>

In this instance I'd be the gun-maker. There are some people I wouldn't let near the gun itself - let alone get their fingers on the safety catch <g>

>The count option with a warning is fine because it gives the user the information to make a decision. That's much better than refusing to do it. Who are we to judge what's an appropriate number of records? How about when there's only 50 records in the database. If your rule is NEVER let the user select all records, what's the harm in picking 50 records?
>

My rule was not 'Never allow the user to select all records' - just 'Set a reasonable maximum to the number of records that the user can select'.

>
>Any person should be able to do what they need to do and I'm not going to FORCE them not to do it. I'll provide them with the tools to do it better. They should get warned, with the option to continue or not. They should have the tool to specify whatever criteria they want. The should have the ability to cancel the query in midstream.
>
>They can decide to pull the 16 million in the evening, over the weekend, whatever. They can decide to go back to the boss and say, it's going to take days to run that. So the boss can escalate the request to IT.
>

Would you apply this argument to a web app with annonymous users? If I did it I'd probably be out of a job long before they got the result set <s>

>Backups take hours. Should the backup software REFUSE to run?
Backups are different argument. They can run in the background, at a lower priority, be scheduled for low usage periods and don't neccessarily affect network bandwidth.

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform