The Schedule 7 Experience
I surf the web so you don't have to
Wednesday, September 08, 2004
Skype Reviewed
People keep asking me about Skype, and whether they should try it out. This
review of Skype is well balanced, pointing out some of the obvious and not-so-obvious flaws.
From my own experience, my broadband connection, which makes use of Wifi technology, suffers from very high latency, and hence renders Skype unusable.
If it's usable on dialup, I'd be interested in hearing about that.
Wednesday, September 01, 2004
Stored Procedures, what are they good for?
We're all familiar with the traditional benefits of stored procedures. For instance, this site, which talks about implementing stored procs in mySQL, lists them nice and succinctly:
- Better performance Stored procedures are faster because they are pre-compiled SQL code. This reduces the “Compile and Execute” step to just “Execute’ in most cases. Also, only the call to the stored procedure needs to be sent to the server instead of chunks of information – this reduces the information that needs to be sent to the server and acts like a call to a remote procedure. This is an advantage when it comes to code that is called repeatedly. However, the load on the server is another point to consider since most of the processing will now be done on the server.
- Easier to maintain Since all the SQL can now be stored on the server, it is easier to make changes to the stored procedure than to a bunch of SQL statements distributed all over the application.
- Security Although the use of stored procedures is not by itself a guarantee of security, it can be used to create an environment where applications and users can only access database tables through the stored procedures, instead of giving them direct access to the tables. The benefit is a layer of abstraction.
- Optimization When a SQL statement is parsed by the server, it is optimized internally by the server. If a bunch of SQL statements are sent to the server, repeatedly, they have to be optimized each time. The SQL statements in the stored procedure that is in memory have to only be optimized once and an execution plan is created for the SQL statements in the stored procedure.
He also objects to the API that you effectively create with stored procs, which can be a problem when the underlying table changes, as this forces the CRUD procs (at least) to change accordingly, breaking any existing client code.
My take? Having worked on many systems where the DB layer was accessed by many systems and languages, I'd say a fixed API was a good thing. Also, it limits the rewriting of identical (byt error prone) code over and over again.
Aside: many of the arguements for and against ORM tools apply equally well in this case.
Everything you wanted to know about blogging but were afraid to ask
Fascinating list of blogging tips. I especially like the frequent reminders that this a time vacuum that suck up more time the more popular it gets
Simon World :: Everything you wanted to know about blogging but were afraid to ask: "Everything you wanted to know about blogging but were afraid to ask"