Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89947
| References | <87oalzh0d5.fsf@Equus.decebal.nl> |
|---|---|
| Date | 2015-05-05 19:20 +1000 |
| Subject | Re: Step further with filebasedMessages |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.113.1430817623.12865.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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