<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to you under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">

<document>
 <header>
   <title>Proposal for Derby: an Apache Database Sub-Project</title>
 </header>

<body>

<p><em>Submitted July 20, 2004</em></p>

<section>
<title>Section 0 : Rationale</title>

<p>Databases are a core component of nearly all applications. But
traditional database servers are expensive to install, configure
and maintain, raising the total cost of ownership for building
and deploying applications. The complexity of traditional
database servers - whether commercial or open source - hinders
the pace of innovation in application development.</p>

<p>What's needed is a much easier to use database - written in
Java with all of the advantages of Java's portability - that
doesn't sacrifice the benefits and features of a full-function
relational database. The database needs to install when the
application is installed, run when the application runs, stop
when the application stops, and upgrade when the application
upgrades. Unless the application developer wishes, the
application user/administrator should not need to worry about the
database underlying the application.</p>

<p>Besides providing all of the functionality of modern
relational databases - complete SQL syntax, transaction commit
and rollback, high concurrency, triggers, online backup, etc. -
the database must adhere to appropriate standards for relational
databases. Standards are key, as developers should not have to
sacrifice their favorite development tools to use the database,
nor should they incur undesirable expense if they later port to a
different database.</p>

<p>Our goal is to produce a community of developers - with
backgrounds in Database Engineering, SQL-92 and SQL-99 standards,
data-centric applications, and XML-related technologies such as
XML-Query - whose mission is to provide a standards-based,
full-featured relational database with the aforementioned
features. The produced software will be Apache Software
Foundation (ASF) licensed. </p>

<p>The starting point for this project will be a contribution by
IBM to the ASF of "Derby", a pure-Java, full-featured relational
database based on a snapshot of the current IBM Cloudscape
product. Derby can be used in several configurations:</p>

<ul>
<li>As an embedded database engine that runs within the same JVM
as the application. So the database starts when the application
starts, stops when the application stops, and requires no skills
or effort to administer by the user/administrator of the
application.</li>

<li>As a networked database server that runs in a separate JVM
and accepts network connections.</li>

<li>As a combination of these two configurations that provides
simplicity for the application developer/administrator plus
remote access to the database when desired.</li>
</ul>

</section>

<section>

<title>Section 0.1 : Criteria</title>

<p>We feel that this project has an excellent chance for success
as measured by the following aspects:</p>

<ul>
   <li><strong>Meritocracy:</strong> The project will be meritocratic - the
   usual Apache meritocracy rules would apply.</li>

   <li><strong>Community:</strong> The user community for this project will be
   large. IBM's internal experience was enthusiastic and widespread
   adoption of Cloudscape by 70+ projects due to its functionality
   and ease-of-use characteristics. We believe these same advantages
   will benefit many users and developers and will result in a large
   community.</li>

   <li><strong>Core Developers:</strong> IBM is dedicating developers to the
   Derby project and is actively seeking additional developers from
   the community to join the project.</li>

   <li><strong>Alignment:</strong> As a full-featured SQL database with a JDBC
   API, the Derby package aligns well with other Apache projects:

   <ul>
      <li>Apache Geronimo - Derby fulfills the JDBC requirement for
      J2EE 1.3 and 1.4 and can be used successfully with the Geronimo
      project.</li>

      <li>Apache Tomcat - Derby can be embedded in Tomcat for a
      self-contained web-application with database functionality. (Has
      already been demonstrated.)</li>

      <li>Apache DB - Cloudscape is currently listed as a supported
      back-end for Torque. Derby could be a supported back-end for
      ORB</li>

      <li>Other possible integration points for Derby include Apache
      Cocoon, multiple projects under Apache Jakarta, and integration
      with Apache Xerces.</li>
   </ul>
   </li>
</ul>

</section>

<section>
<title>Section 1 : Scope of the Project</title>

<p>There are multiple goals for this Apache project:</p>

<ul>
   <li>Promote a healthy open source community.</li>

   <li>Support the breadth of platforms that run Java with a
   relational database that adheres rigorously to open
   standards.</li>

   <li>Promote a standards-based, database-agnostic approach to
   application development.</li>

   <li>Encourage innovation in application development and
   deployment by offering: 

   <ul>
      <li>an easy to use, full-featured relational database for use
      during application development</li>

      <li>an easy to deploy database for use in new applications</li>

      <li>an easy to manage database for production users with modest
      scalability requirements</li>

      <li>a standards-based relational database such that users could
      upgrade later to larger, more complex database server offerings
      if scalability requirements demand</li>

      <li>an ongoing commitment to maintaining a migration path to
      other open standards databases</li>
   </ul>
   </li>
</ul>

</section>

<section>
<title>Section 2 : Initial Source</title>

<p>The initial code base from which to create this project is
from the commercial product called IBM Cloudscape. The history of this
product is that it was developed at Cloudscape Inc. starting in
1996. The Cloudscape product was purchased along with the
Cloudscape company by Informix Software in 1999. In 2001, IBM
purchased the database assets of Informix Software, including the
Cloudscape product.</p>

<p>IBM plans to contribute the Derby code base, test cases, build
files, and documentation to the ASF under the terms specified in
the ASF Corporate Contributor License. Once at Apache, the
project will be licensed under the ASF license.</p>

<p>Derby has the following features and benefits:</p>

<ul>
   <li>
   <strong>Zero administration:</strong> Derby
   can be deployed in unsupervised environments, and does not
   require database administration or resource management. This
   eliminates the need for a database administrator at each client
   installation site.</li>

   <li><strong>Multiple platform compatibility:</strong> Derby
   fully supports Sun Microsystems Java technology standards and
   runs on any standard JVM V1.3, or later. It supports J2SE and
   J2EE.</li>

   <li><strong>Transactions and concurrency:</strong> Derby is highly
   concurrent, and supports row-level locking and read-committed,
   read-uncommitted, repeatable-read isolation levels, and
   serializable isolation levels.</li>

   <li><strong>Typical relational database features</strong> 

   <ul>
      <li>Fast query compilation</li>

      <li>Bulk load</li>

      <li>Multiple user support</li>

      <li>Online backup</li>

      <li>Crash recovery</li>

      <li>Built-in performance diagnostics: Query statistics, locks, and
      space usage</li>
   </ul>
   </li>

   <li><strong>Advanced security features</strong>

   <ul>
      <li>Signed JAR files</li>

      <li>Optional LDAP and application-defined authentication</li>

      <li>
      Configurable disk encryption, supporting both diverse encryption
      algorithms and encryption providers other than the default Java
      Cryptography Extension (JCE) provider</li>
   </ul>
   </li>

   <li><strong>Internationalization and localization support:</strong> Derby
   supports Unicode and allows for localized error messages.</li>

   <li><strong>SQL features</strong> 

   <ul>
      <li>SQL-92E compliance and supports key features in the SQL-99
      standards</li>

      <li>Cost-based optimizer that supports hash joins, sort avoidance,
      and row- or table-level locking based on percent of data
      selected</li>

      <li>Triggers</li>

      <li>Foreign key and check constraints</li>

      <li>Multicolumn B-Tree indexes</li>
      
      <li>Multithreaded connections</li>

      <li>Hold cursors</li>

      <li>Temporary tables</li>

      <li>BLOB/CLOB data types</li>

      <li>Support for complex SQL transactions</li>
   </ul>
   </li>

   <li><strong>Java features</strong> 

   <ul>
      <li>JDBC driver</li>

      <li>Java procedures and functions</li>

      <li>Storage of JAR files in the database, including signed JARs</li>
   </ul>
   </li>
</ul>

</section>

<section>
<title>Section 3 : ASF Resources to be Created</title>

  <section>
  <title>Section 3.1 : Mailing Lists</title>

  <ul>
    <li><a href="mailto:derby-dev&#064;incubator.apache.org">derby-dev&#064;incubator.apache.org</a></li>

    <li><a href="mailto:derby-ppmc&#064;incubator.apache.org">derby-ppmc&#064;incubator.apache.org</a></li>
  </ul>
  </section>

  <section>
  <title>Section 3.2 : CVS Repositories</title>

  <ul>
    <li>incubator-derby</li>
  </ul>
  </section>

  <section>
  <title>Section 3.3 : Bugzilla or possibly Jira</title>

  <ul>
    <li>TBD</li>
  </ul>
  </section>

  </section>

  <section>
  <title>Section 4 : Initial Set of Committers</title>

  <p>All committers will sign and submit a Contributors License
  Agreement. To start the project in the incubator, the initial
  committers from IBM will include:</p>

  <ul>
  <li>Jean Anderson, <a href=
  "mailto:jta&#064;bristowhill.com">jta@bristowhill.com</a></li>

  <li>Satheesh Bandaram, <a href=
  "mailto:satheesh&#064;sourcery.org">satheesh@sourcery.org</a></li>

  <li>Daniel Debrunner, <a href=
  "mailto:djd&#064;debrunners.com">djd@debrunners.com</a></li>

  <li>Katherine Marsden, <a href=
  "mailto:kmarsden&#064;Sourcery.Org">kmarsden@Sourcery.Org</a></li>

  <li>Mike Matrigali, <a href="mailto:mikem_app&#064;sbcglobal.net">mikem_app@sbcglobal.net</a></li>

  <li>Samuel McIntyre, <a href=
"mailto: fuzzylogic&#064;Nonintuitive.Com">fuzzylogic@Nonintuitive.Com</a></li>
  </ul>

 </section>
 <section>
 <title>Section 5 : Apache Sponsoring Individuals</title>

  <ul>
  <li>Apache DB project</li>
  </ul>

 </section>
 <section>

 <title>Section 6 : Incubation Exit Criteria</title>

  <p>We feel this project should exit the incubator to join the
  Apache DB project should the following goals be met.</p>

  <p>Technical Goals:</p>

  <ul>
  <li>One or more Releases of the package during the incubation
  phase</li>
  </ul>

  <p>Non-Technical Goals:</p>

  <ul>
  <li>List presence and monitoring in wider Apache communities</li>

  <li>Website cross reference to existing Apache literature with
  respect to rules and regulations</li>

  <li>Initial integration plan and cooperation with Apache DB and
  Apache Jakarta projects</li>

  <li>Additional contributors on the project</li>
  </ul>

</section>

</body>
</document>

