Add `Dataset` and `Writer` modules for the `lmdb` format

Abierto
#820 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@astrojarred ya está trabajando en esto.

Desde el 6/10/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

feature

Is your feature request related to a problem? Please describe.
lmdb is a memory-mapped database format that provides random access to individual training events faster than SQLite.

The main benefits of lmdb: Faster query speeds, lower storage footprint, serialized data allows for an elegant implementation of storing arbitrary DataRepresentations (see #781).

Image Image

For larger datasets, and particularly large events, SQLite can become prohibitive as a dataset format.

Describe the solution you'd like

  • A LMDBWriter that outputs events in lmdb format. Should accept a serialization method (msgpack, for example). Should optionally accept a DataRepresentation - if given, representations are pre-computed and serialized using dill or similar pickle methods (see #781). A field in the database should contain relevant information regarding the serializer, such that the file is a self-contained object that users can read without prior knowledge of the serializer used.
  • A LMDBDataset that is compatible with the lmdb database format. Should automatically check for which serializer was used, so the user doesn't have to guess. Should be able to retrieve pre-computed data representations.
Lenguaje dominante
Python
Estrellas
117
Forks
115
Merge medio
2 d 21 h
PR fusionados (30 d)
1

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de graphnet-team/graphnet

Todos los issues de graphnet-team/graphnet

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.