Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:not': 0.03; 'url:pypi': 0.03; 'implements': 0.09; 'subject:Why': 0.09; 'subject:module': 0.09; 'whichever': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'python': 0.11; 'ancillary': 0.16; 'for,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ought': 0.16; 'suspicion.': 0.16; 'throughput': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'written': 0.21; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'driver': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'thus': 0.29; 'message-id:@mail.gmail.com': 0.30; 'doc': 0.31; 'libraries': 0.31; 'says': 0.33; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'disk': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'las': 0.37; 'performance': 0.37; 'pm,': 0.38; 'does': 0.39; 'skip:p 20': 0.39; 'url:5': 0.61; 'pick': 0.64; 'life': 0.66; 'between': 0.67; 'obvious': 0.74; '10:32': 0.84; 'easier,': 0.84; 'presumably': 0.84; "they'd": 0.84; 'thing...': 0.84; 'to:none': 0.92; 'differences': 0.93; 'confirms': 0.95 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=VaO8GMYqfutTEvxDlAnFPKItHjL2JKBPiVcjThII6EQ=; b=U9irJQVAV3Y8/OWzslUwrx0nZ+DBWrMlD8efeyEwGh/5+CNP581nRH1aqsRGKOXpSi LBfkytG4e+e+v624/vFl5WwZV/CjbST2uxA64Q1DTsEW3+T+NRZlWVLGvk3zWmQBP2Vm s76ah+SohzR7IjjA2TO3kLIm8mOTOBoI4PQ1vGUK4QbipIh6oGLwIhcsSChJXh6vyRac 5xB7O2Q2AqFY3v0s5/Qs2oEo/OD77Vs9ZsGYexe+EjdT0qk6Ra6ULj3eZMlYkLHt2fOf ri7WR3WO4NrEpruP+8ADeP5YjSj9Z0codfjM1hJSYMhVtcay8GtB2KxPrfxn4L0dEBAX 9GDw== MIME-Version: 1.0 X-Received: by 10.68.182.165 with SMTP id ef5mr127654pbc.169.1391859750216; Sat, 08 Feb 2014 03:42:30 -0800 (PST) In-Reply-To: <145766f5-6e5f-40c7-be92-3adbf1015731@googlegroups.com> References: <429f41e0-7fe8-4792-82f2-e438917a3add@googlegroups.com> <145766f5-6e5f-40c7-be92-3adbf1015731@googlegroups.com> Date: Sat, 8 Feb 2014 22:42:30 +1100 Subject: Re: Why use _mysql module and not use MySQLdb directly? 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391859760 news.xs4all.nl 2878 [2001:888:2000:d::a6]:34257 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65672 On Sat, Feb 8, 2014 at 10:32 PM, Asaf Las wrote: > Hi Chris > The doc says > https://pypi.python.org/pypi/mysql-connector-python/1.1.5 > > MySQL driver written in Python which does not depend on MySQL C > client libraries and implements the DB API v2.0 specification (PEP-249). Ah. And that links to dev.mysql.com, so it's presumably the same thing... would be nice if they'd say that on their own site. That's what I was looking for, anyhow. Confirms the suspicion. There may well be performance differences between pure-Python implementations and ones that go via C, but having used a pure-high-level-language implementation of PostgreSQL's wire protocol (granted, that was Pike, which is a somewhat higher performance language than Python, but same difference), I can assure you of what ought to be obvious anyway: that performance is dominated by the server's throughput and thus (usually) by disk speed. So it's going to be pretty much the same with all of them; look for ancillary features that might make your life easier, otherwise pick whichever you like. ChrisA