--
Email to group : dbit-t...@googlegroups.com
To unsubscribe, send email to
dbit-techtal...@googlegroups.com
Visit this group at
http://groups.google.com/group/dbit-techtalk?hl=en
Don't you use version control? Then you could find out who it actually was?
Secondly, it was indeed being submitted twice. Once for the A, and
once for the INPUT.
Thirdly, you are NOT supposed to use GET for updating databases. You
MUST use POST. This is because GET must be idempotent.
Fourthly, did you [or the database designer] not study normalization
of databases wrt to the scale column?
Fifthly (and finally), do you not know that UPDATE can actually
perform the addition itself and if you had followed normalization
rules, it would be just a single update statement?
--
Sreepathi Pai
Don't you use version control? Then you could find out who it actually was?
Secondly, it was indeed being submitted twice. Once for the A, and
once for the INPUT.
Thirdly, you are NOT supposed to use GET for updating databases. You
MUST use POST. This is because GET must be idempotent.
Fourthly, did you [or the database designer] not study normalization
of databases wrt to the scale column?
Fifthly (and finally), do you not know that UPDATE can actually
perform the addition itself and if you had followed normalization
rules, it would be just a single update statement?
--
Sreepathi Pai
--
Email to group : dbit-t...@googlegroups.com
To unsubscribe, send email to
dbit-techtal...@googlegroups.com
Visit this group at
http://groups.google.com/group/dbit-techtalk?hl=en
Here's a thumb rule: If you modify something on the database side,
then you should mostly use POST.
If it's just a view action, and this is important: IF THERE IS NO HARM
IN RUNNING TWICE (or more), then use GET. You should read the HTTP RFC
for more details.
A browser will prevent a POST from running twice, while it will
happily run GET any number of times.
>> Fifthly (and finally), do you not know that UPDATE can actually
>> perform the addition itself and if you had followed normalization
>> rules, it would be just a single update statement?
>>
>> i didnt know abt it, Hence forth i'll make it a point to apply
>> normalization as an when needed appropriately in projects where i am
>> involved in the DB design.
Atleast the following rules were violated here:
* scale is not an atomic field
* scale could possibly have been a foreign key
In my opinion, getting the database design correct is crucial to
performance and correctness!
--
Sreepathi Pai
Umm ... why? This looks simple, but is quite likely overkill. I mean,
why require a webserver and PHP for version control? Also, it doesn't
seem to support important VCS concepts like conflict detection and
merging.
Narayan, have you actually used a VCS? Any VCS? Can you compare the
workflow of a command-line VCS with this?
Please use bzr/git/svn to get a flavour of what actual VCSes are like.
My most common personal bzr workflow uses only these commands:
1. bzr init (once per project)
2. bzr add (once per new file)
3. bzr diff (many times during development)
4. bzr stat (many times during development)
5. bzr commit (many times during development)
6. bzr push (many times during development)
7. bzr branch
7. bzr merge
8. bzr info
9. bzr log
If you do want a UI, check out bzr's GTK UI:
<http://wiki.bazaar.canonical.com/bzr-gtk>
--
Sreepathi Pai