Logo     Photos

15 Member(s) Online

PyCon is a 100%
Volunteer-run
Conference Organized by
Members of the
Python
Community.

Site/Questions etc ?

Valid XHTML 1.0 Transitional

Valid CSS!

PyCon 2007 is sponsored
in part by
Zenoss - The Next Step in IT Management Google Microsoft .Net Framework EWT LLC Enthought, Inc. ITA Software
Platinum
Wingware Python IDE Accense Technology, Inc.
Gold
Quality Vision International Inc. MerchantCircle Big Nerd Ranch, Inc. High Speed Rails Canonical ZeOmega -- Open Minds' Open Solutions Open Source Applications Foundation CCP Games Tummy.com - we do linux AG Interactive ActiveState - Dynamic Tools for Dynamic Languages
Silver
Python411 Podcast Series O'Reilly Media, Inc.
Media

Class Outline: Advanced Databases with SQLAlchemy

  Part 1: advanced database concepts
  ==================================

  Subqueries
  ----------
   - scalar
   - in FROM

  Functions
  ---------
   - One query is almost always better than multiple
     - parse overhead
     - driver and/or network overhead
   - pl/pgsql
   - pl/pythonu

  Triggers
  --------
   - Performance
   - Single point of maintenance
   - Declarative vs procedural
   - per-statement vs per-row


  Part 2: mapping with SQLAlchemy
  ===============================

  Introduction
  ------------
   - Data Mapper pattern vs Active Record
   - Reusable constructs vs collections of special cases

  Data constructs
  ---------------
   - Constraints
     - FKs
     - ON UPDATE, ON DELETE
   - How SA plays nicely with in-db defaults and triggers

  Queries
  -------
   - Joins
   - Subqueries
   - Aliasing

  Mapping to Python classes
  -------------------------
   - one to many, many to many
   - backreferences
   - mapping to lists; cascade options
   - inheritance

  Advanced mapping & optimization
  -------------------------------
   - logging query duration with a proxy Engine
   - lazy / eager loading
     - identity map is not a cache
   - mapping function calls and subqueries
Content Last Modified: December 01, 2006, at 08:21 AM