Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89947

Re: Step further with filebasedMessages

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.028
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; '(especially': 0.07; 'postgresql,': 0.09; 'rows': 0.09; 'subject:skip:f 10': 0.09; 'whichever': 0.09; 'cc:addr:python-list': 0.11; '6:52': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sequential': 0.16; 'wrote:': 0.18; 'small,': 0.19; 'starts': 0.20; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'bigger': 0.30; 'involving': 0.30; 'message- id:@mail.gmail.com': 0.30; 'concern': 0.31; 'maybe': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'should': 0.36; 'two': 0.37; 'performance': 0.37; 'whatever': 0.38; 'files': 0.38; 'pm,': 0.38; 'that,': 0.38; 'does': 0.39; 'even': 0.60; "you're": 0.61; 'you.': 0.62; 'grab': 0.64; 'details': 0.65; 'yourself': 0.78; '2015': 0.84; 'whirl': 0.84; 'to:none': 0.92
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=O3ZABJ1GTECWqZjK749gsFHhg9aLvP0RlYzgouHjNko=; b=R6j+Pal76ERv+Vhk+mzpxAdwb6j9juWkQROzRD3yWG3/YCIFlJdffoaUP9OA/DnUgE XbhuzbqRmTPjOrEJ+4VF+tq5GnESoaLaNfJJ6EJ0QHBFzA0VpVBB3LXLIsZvN9gOLfhH gZAwIpMgnto2o3oo740uqpp2tRFeaJrRyN+S4hbUK+nHQyb6iNxE4dyOdBzEYlVMsn54 l+Q6UteGS0j6dU4As+ehmO4NZWeKDrilIBAKDli073x7nJ0XM/1jsHBarQ1EgCpRIGTQ DF0z8axN+nnlV5facpBUPrK/AQ0tbMYqq/uyiUzXHIUEGq1+LdebqVT32TiGzCMqufmX bncA==
MIME-Version 1.0
X-Received by 10.107.16.32 with SMTP id y32mr32480675ioi.53.1430817619457; Tue, 05 May 2015 02:20:19 -0700 (PDT)
In-Reply-To <87oalzh0d5.fsf@Equus.decebal.nl>
References <87oalzh0d5.fsf@Equus.decebal.nl>
Date Tue, 5 May 2015 19:20:19 +1000
Subject Re: Step further with filebasedMessages
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.113.1430817623.12865.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430817623 news.xs4all.nl 2866 [2001:888:2000:d::a6]:46905
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89947

Show key headers only | View raw


On Tue, May 5, 2015 at 6:52 PM, Cecil Westerhof <Cecil@decebal.nl> wrote:
> I now defined get_message_slice:

You're doing a lot of work involving flat-file storage of sequential
data. There are two possibilities:

1) Your files are small, so you shouldn't concern yourself with
details at all - just do whatever looks reasonable, nothing will
matter; or
2) Your files are bigger than that, performance might be a problem
(especially when your Big Oh starts looking bad), and you should move
to a database.

Maybe even with small files, a database would be cleaner. You can grab
whichever rows you want based on their IDs, and the database will do
the work for you. Grab SQLite3 or PostgreSQL, give it a whirl - you
may find that it does everything you need, right out of the box.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Step further with filebasedMessages Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 10:52 +0200
  Re: Step further with filebasedMessages Chris Angelico <rosuav@gmail.com> - 2015-05-05 19:20 +1000
    Re: Step further with filebasedMessages Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 12:14 +0200
  Re: Step further with filebasedMessages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-05 20:41 +1000
    Re: Step further with filebasedMessages Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 13:27 +0200
      Re: Step further with filebasedMessages Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-05 07:57 -0600
        Re: Step further with filebasedMessages Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 16:51 +0200
  Re: Step further with filebasedMessages Peter Otten <__peter__@web.de> - 2015-05-05 13:08 +0200
    Re: Step further with filebasedMessages Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 17:25 +0200
      Re: Step further with filebasedMessages Dave Angel <davea@davea.name> - 2015-05-05 13:10 -0400

csiph-web