From oracle-l-bounce@freelists.org Wed Apr 28 09:50:42 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i3SEoH421103 for ; Wed, 28 Apr 2004 09:50:27 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i3SEo6621039 for ; Wed, 28 Apr 2004 09:50:16 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DD91272CEA4; Wed, 28 Apr 2004 09:41:15 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31553-09; Wed, 28 Apr 2004 09:41:15 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 35DF772CD4D; Wed, 28 Apr 2004 09:41:15 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 28 Apr 2004 09:40:03 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 313B072D2B8 for ; Wed, 28 Apr 2004 09:40:03 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29669-95 for ; Wed, 28 Apr 2004 09:40:03 -0500 (EST) Received: from ihub.perceptron.com (ihub.perceptron.com [68.22.13.201]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7EDB372CFDC for ; Wed, 28 Apr 2004 09:40:00 -0500 (EST) Received: from [192.168.4.7] (ineyman@perceptron.com) by Office-Logic InterChange; Wed, 28 Apr 2004 10:54:24 -0400 From: "Igor Neyman" To: Subject: RE: Index-Organized Table experiences Date: Wed, 28 Apr 2004 10:52:50 -0400 Message-ID: <001e01c42d30$7a790c50$0704a8c0@development.perceptron.com> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <408FBC5A.678E43E8@sun.com> Importance: Normal X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 3951 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: ineyman@perceptron.com Precedence: normal Reply-To: oracle-l@freelists.org X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org I've been using IOTs, though not for intersection entities. I had a problem (in Oracle 8.1.5) with "on delete cascade" foreign key (IOT as a child table). Had to implement "on delete" trigger on parent table instead of foreign key. Don't know, if it's fixed in 10g. Igor Neyman, OCP DBA ineyman@perceptron.com -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of Daniel Fink Sent: Wednesday, April 28, 2004 9:15 AM To: oracle-l@freelists.org Subject: Index-Organized Table experiences We are looking to implement IOTs for a couple of intersection entities in a 10g db. I would like to hear from those brave enough to actually use IOTs what is the good, the bad and the ugly. example: Employee (heap table) Project (heap table) There is a many-to-many relationship between the tables (1 employee can be on many projects and 1 project can have many employees). The emp_project table is the intersection entity containing emp_id and project_id as the only columns. There are FK constraints on each of the columns. The combination of emp_id and project_id is unique. This situation *sounds* like the right one for an IOT, otherwise we would have 1 table and 2 indexes (1 on each column). My main concerns are: 1) Integrity/performance 2) Locking behavior (do I need to adhere to the traditional "index all foreign keys" rule to prevent excessive locking?) 3) Any especially nasty gotchas Thanks, Daniel ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------