Re: S.O.D.A. database Query API - call for comments
Date: 28 Apr 2001 21:56:32 +0200
Message-ID: <9cf79g$mgg$1_at_localhost.localdomain>
[Lee Fesperman]
>> Hmm, there some real advantages to queries in string form:
>> + easy to build using standard facilities
[Carl Rosenberger]
> No.
> [ ... cutted away a lot of reasons why SQL statements stinks ... ]
Having the queries in a string form, at the other hand, might be a very smart thing. Of course, bit compiled code is always more efficient, both for storing and communication between clients. Look a bit around, there is not much things we use the computers for today that couldn't be done with fifteen years old technology - still the end user needs a state-of-the-art computer to pay the electricity bills and read the local news! It's outrageous - and one of the reasons is probably that most of the application protocols in the TCP/IP-world is in plain text, readable by human [programmers].
Still, I've started realizing that it's quite smart to use protocols that can be accessed as human readable text. It simply makes debugging and data processing so much easier! And data conversion! I've always considered the FidoNet standards for file, mail ("NetMail") and news ("EchoMail") exchange as superior to TCP/IP, FTP, HTTP, SMTP, POP3, NNTP, etc. So why have "Internet" taken so much over? The priciple is; Keep It Simple Stupid.
>> + usually the most compact form for network transport
>
> No.
> What's efficient about a string format, that even sends keywords as
> uncompressed strings?
> Is a plain XML file more efficient than a zipped file?
Agreed, binary data - and particularly compressed/optimized binary data - is always more efficient and compact than text, and even gzip'ed text.
>> + portable to multiple DBMSs
>
> No, except for extremely simple cases.
As you say, The SQL implementation differs quite a bit, the standards don't include the necessary features. Anyway, textual representation usually offers better portability. Because textual formats often are considered easier to deal with, more software is written conforming to standards dealing with human readable text. The programmers don't have to think about byte order. Etc.
>> + human readable.
>
> No, because you can not split statements to isolate problems.
[From the original post]
(...)
> - String queries do not have to be parsed by database engines.
> Advantages:
> - improved performance
> - reduced overhead and less resource consumption
[comp.lang.java.programmer cutted away from the follow up]
-- Tobias Brox, freelance hacker for hire. Good at solving problems. +47 98660706 / tobiasb_at_suptra.orgReceived on Sat Apr 28 2001 - 21:56:32 CEST
