Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 61784 invoked from network); 14 Nov 2005 04:30:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Nov 2005 04:30:48 -0000 Received: (qmail 38425 invoked by uid 500); 14 Nov 2005 04:30:47 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 38382 invoked by uid 500); 14 Nov 2005 04:30:47 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 38371 invoked by uid 99); 14 Nov 2005 04:30:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2005 20:30:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of michaelm001@frontiernet.net designates 66.133.182.167 as permitted sender) Received: from [66.133.182.167] (HELO relay04.roc.ny.frontiernet.net) (66.133.182.167) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2005 20:30:38 -0800 Received: from [192.168.254.2] (67-51-118-137.dsl1.elk.ca.frontiernet.net [67.51.118.137]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 5A82D3581CF for ; Mon, 14 Nov 2005 04:30:25 +0000 (UTC) Message-ID: <437812E1.5070106@frontiernet.net> Date: Sun, 13 Nov 2005 20:30:25 -0800 From: Michael McCutcheon User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-user@db.apache.org Subject: stored procedures and embedded derby Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.2 (20050629) at filter04.roc.ny.frontiernet.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello All, I'm going to be using Derby (in embedded mode) in Tomcat for my web app. I am building everything from scratch. I'm trying to decide on if I want to put 'everything' in stored procedures or just code stuff in the application. (i.e. no SQL in the application code whatsoever, all logic in procedures, etc.) It seems like stored procedures are just more developer work for an embedded database (more stuff to setup), and may actually be slower at runtime because (I assume) the static methods are called reflectively (correct me if I am wrong). However, if I did do everything in stored procedures, that would make it easy if I were to move out of embedded and put the database on a seperate machine. But for now the plan is to be completely embedded. Can anyone share thoughts on this? What do you think are the benefits/drawbacks of stored procedures for an embedded database? Thanks for any input, Mike