Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4555
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Stefan Behnel <python-de@behnel.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Wie Key-Value Sets speichern? |
| Date | Thu, 29 Sep 2016 08:47:45 +0200 |
| Lines | 16 |
| Message-ID | <mailman.92.1475132046.2302.python-de@python.org> (permalink) |
| References | <5451e46e-5eca-e89d-61ef-2030e6aee36e@xgm.de> <95c64ce4-f337-280c-f339-01a2b58cfd36@inqbus.de> <68511A44-149A-47C1-9AC8-7F7A4F259FE3@wodca.de> <1c85a3a1-4e86-2dc1-6fe2-59f90e5cdffe@behnel.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de OoYQ7ssxTIrB4ylOfP8SNwQIFalZl/XF/jiqoIt3Pt3A== |
| Return-Path | <python-de@behnel.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; t=1475132045; l=769; s=domk; d=behnel.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:From:References:To:Subject; bh=Z42EHAfV5wrjFxnGQe6tYf5pRWYTbFZy2jyQUvRMIN4=; b=Tc5v4cyTbd85CmPXe5N60zlhseMobdtmWgTXrK5zircFgpMFbYoeQgkJdxz+KKp8ZWn +AoeeWYceVKwFhtt7TMNFXAuLLLwqTA8ARIXgZSOXeJxPZEtZEl9KK2PWTN2aYlFLEItK hQ60WyUbRNXy1w79YBMAVAquwheaLEuTcak= |
| X-RZG-AUTH | :E1MMdFW4b++AXZOTwA41DOYM0Dv9LNWvavC/fJZqSuoXq8/b35jbpobCHhqGMtX2sTSBMcbQ0A== |
| X-RZG-CLASS-ID | mo00 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
| In-Reply-To | <68511A44-149A-47C1-9AC8-7F7A4F259FE3@wodca.de> |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <1c85a3a1-4e86-2dc1-6fe2-59f90e5cdffe@behnel.de> |
| X-Mailman-Original-References | <5451e46e-5eca-e89d-61ef-2030e6aee36e@xgm.de> <95c64ce4-f337-280c-f339-01a2b58cfd36@inqbus.de> <68511A44-149A-47C1-9AC8-7F7A4F259FE3@wodca.de> |
| Xref | csiph.com de.comp.lang.python:4555 |
Show key headers only | View raw
Achim Herwig schrieb am 29.09.2016 um 08:24: > wenn die Daten unterschiedlich sind, kann es auch sinnvoll sein, SQLite als Persistenz-Format einzusetzen. Dann kannst Du Dir bequem für jeden Record-Typen eine eigene Tabelle schreiben und später beim Einlesen die Daten selektieren. Na ja, wenn es schon eine Datenbank sein soll für den initial beschriebenen Anwendungsfall, Key-Value-Paare zu speichern (und das ist definitiv keine schlechte Idee, war sogar mein erster Gedanke), dann würde ich nicht den SQL-Hammer rausholen, sondern eine der dbm-Datenbanken, die Python seit Urzeiten mitliefert. https://docs.python.org/3/library/dbm.html Die machen nämlich genau das: Daten per Schlüssel referenzieren und effizient zugreifbar machen. Stefan
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Wie Key-Value Sets speichern? Stefan Behnel <python-de@behnel.de> - 2016-09-29 08:47 +0200
csiph-web