Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'anyway.': 0.05; 'intermediate': 0.07; 'postgresql': 0.07; "subject:' ": 0.07; 'assuming': 0.09; 'git': 0.09; 'worked,': 0.09; 'cc:addr:python- list': 0.11; '90s,': 0.16; 'apt': 0.16; 'concurrent': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'git.': 0.16; 'mean,': 0.16; 'postgres,': 0.16; 'sqlite': 0.16; 'subject:dates': 0.16; 'subject:sqlite3': 0.16; 'think.': 0.16; 'do,': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'users.': 0.18; 'thu,': 0.19; 'unlike': 0.19; 'feb': 0.22; 'settings': 0.22; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'him.': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'purposes': 0.26; 'recognized': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'network.': 0.30; 'originally': 0.30; 'message- id:@mail.gmail.com': 0.30; '(which': 0.31; 'usually': 0.31; 'clicked': 0.31; 'layer': 0.31; 'probably': 0.32; 'quite': 0.32; 'everyone': 0.33; 'becomes': 0.33; 'there,': 0.34; "i'd": 0.34; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'done': 0.36; 'similar': 0.36; 'should': 0.36; 'effort': 0.37; 'implement': 0.38; 'anything': 0.39; 'does': 0.39; 'use.': 0.39; 'how': 0.40; 'easy': 0.60; 'gone': 0.61; 'course': 0.61; 'simple': 0.61; "you're": 0.61; 'first': 0.61; 'back': 0.62; "you've": 0.63; 'address': 0.63; 'developed': 0.63; 'such': 0.63; 'networking': 0.64; 'telling': 0.64; 'more': 0.64; 'different': 0.65; 'talking': 0.65; 'life': 0.66; 'brain': 0.68; 'realized': 0.68; 'useful.': 0.68; "today's": 0.70; '2015': 0.84; 'misses': 0.84; 'saying:': 0.84; 'careful': 0.91; 'processes,': 0.91; 'to:none': 0.92; 'suited': 0.93 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:cc :content-type; bh=Okgy8bB7J0mTjuS1i2Dubm0f0SG//KrQ73Y5CYZNi3Y=; b=MNSkwhn2KHDSrQo3pyu5VTENEU1GEKlPrXC6LblNteQnGSOqpNBYl7Kr0PPH/nPZys KibqD5eGiSIl9w20qXwoJi8XCQiPHPSZ88azR8Qcd1hDjpRX4mI5J6dKEMYRG8FBD2M5 0u3Ytq2KALz4hJj8NjqtGqI769qwsKKBhjMq4mfGqyjXLGDuumWoe7KozFXLwrgGuTlJ 9pTkF8bHNBEiA3IvW3TRyA3+7GJSdhem5FZc1wBGEARb6ih4N0APwsUoeVSBobZ/ytiL Txb9oRr8mqKh2axrXj2Bv49qsLjLRkRpRmAjvX3anVW86R3PCgypSfwAn/Eq0fnWBP/9 vlCQ== MIME-Version: 1.0 X-Received: by 10.42.64.197 with SMTP id h5mr3319960ici.12.1424306578676; Wed, 18 Feb 2015 16:42:58 -0800 (PST) In-Reply-To: References: <4154cc37-0bb0-4bf2-a52c-b728c737357c@googlegroups.com> <54E517B4.4000409@stoneleaf.us> Date: Thu, 19 Feb 2015 11:42:58 +1100 Subject: Re: 'Lite' Databases (Re: sqlite3 and dates) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424306587 news.xs4all.nl 2889 [2001:888:2000:d::a6]:58461 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85839 On Thu, Feb 19, 2015 at 11:08 AM, Mario Figueiredo wrote: > I usually think of my relationship with postgre as similar to what I > experienced with Git. At first I was just dumbstruck by the whole > thing and my first reaction was to ignore it and just do version > control as I knew with the tools I knew. But once my brain clicked > into 'Git mode' and I realized its philosophy and its processes, I > immediately recognized the benefits and understood why everyone was > telling me Git was easy to use and highly useful. (Side point: If you're going to treat PostgreSQL the way you'd treat a girlfriend/boyfriend, you should probably be careful of how you address him. "Postgres" or "PostgreSQL", but not usually "Postgre".) This is a quite apt analogy. You have to get your head around some fundamentals, but once you do, life becomes amazing. >>then there is SQLite, which does 99% of what I want it to do other than >>network use. > > SQLite misses some important features that makes it better suited as a > simple datastore, not much unlike shelve. And network use is not one > of them, since you can actually implement concurrent sqlite access by > coding an intermediate layer. Assuming of course we are talking about > a small number of concurrent users. This is what I was saying: it's fine for purposes like Firefox's bookmarks and settings and such (which I think was what it was originally developed for?). Not so fine over a network. Adding an intermediate layer is a lot more effort than you might think. By the time you've gone there, you should be looking at PostgreSQL anyway. I tried to bolt networking support onto a couple of different databasing systems, back in the 90s, and it was faintly ridiculous... I mean, it worked, but if I'd had today's Postgres, I would never have done anything of the sort. ChrisA