Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'column': 0.07; "subject:' ": 0.07; 'table.': 0.07; 'logic': 0.09; 'record.': 0.09; '1:09': 0.16; 'consciously': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Adding': 0.16; 'subject:download': 0.16; 'wrote:': 0.18; 'library': 0.18; 'memory': 0.22; 'possibly': 0.26; 'tables': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'piece': 0.31; 'fri,': 0.33; 'table': 0.34; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'too': 0.37; 'being': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'new': 0.61; 'times': 0.62; "you'll": 0.62; 'information': 0.63; 'skip:n 10': 0.64; 'pick': 0.64; 'foreign': 0.74; 'idiot': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=l3nnmKQLnlbdQGAIpNmwXgFG1sA+U4w6goSGTn2ceuk=; b=t52yigzmTPvpivTpDloVqkAPGRO1S95EtJMclIjXbVKxIB8fskEVItnRS0P1ZzLe7w OHbfbmnkL5FDyCub0aQCf5j06zL7fus57i4vsknzScZ4fOto2jywCSxHV2ccm9xbferY mqQsffFja8ovZaaBu3Id7uhFsVi4xoWrvPyUiR8JPS+w9TcV95q8yOjCyre5nEV/4eaI hzcqxdKF5DbKG9NQOy/KD+nribwElL3/LIxmV8Cy4yD6k2bBux8cjQ0Tdpi+JfZ8tsBG TarudBcNUH0ATC7eMWX74fKqcDuvutH+TRFf1OexAtmhKLKVvLf+TVXxwdbpgTzWNXtH tX9Q== MIME-Version: 1.0 X-Received: by 10.66.164.136 with SMTP id yq8mr9898342pab.67.1383835034765; Thu, 07 Nov 2013 06:37:14 -0800 (PST) In-Reply-To: References: Date: Fri, 8 Nov 2013 01:37:14 +1100 Subject: Re: Adding 'download' column to existing 'visitors' table (as requested) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383835037 news.xs4all.nl 15922 [2001:888:2000:d::a6]:53495 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58661 On Fri, Nov 8, 2013 at 1:09 AM, =CD=DF=EA=EF=F2 =C1=EB=E5=EE=FC=F0=EF=F5=EB= =EF=F2 wrote: > Why create a whole new 'downloads' table and associate it with the with a > foreign key with the 'visitors' table you idiot when you can just have an > extra column at the end of the current 'visitor's table? > > Both 'downloader' and 'downlaod' is associated by being in the same recor= d. > > By your logic every time we want to store an extra piece of information w= e > have to create an extra database table. > > Too much hussle for no good reason.... Go to your local library and pick up a book on database design - or possibly you'll find it on Wikipedia. There ARE good reasons for the "hassle" of normalization. There are times when you consciously denormalize (I often read tables into memory for a (read-only) cache, and denormalize aggressively), but the rule of thumb is: It's normal to normalize. ChrisA