Skip to content

API kiara.list_all_values endpoint takes several minutes to process #73

@MariellaCC

Description

@MariellaCC

Describe the bug

I cleared the data store recently but ran a few operations since then without saving anything in the meantime (at least, not that I recall). I need to display the values present in the data store in a Jupyter notebook. When trying to run kiara.list_all_values() the cell takes more than 5 minutes to run, so I stopped the process. However, when I try to run kiara.list_all_value_ids() it works in a few seconds.

Additional info

partial output of kiara.list_all_value_ids():
(I just copied/pasted a few lines)

UUID('000537a8-4368-484c-ad6b-bd6c26bde2f6'),
 UUID('02484e0a-95cb-44bd-bcca-c0ae9701477a'),
 UUID('03065ed1-e927-48c4-9970-5f02fc71c74a'),
 UUID('04879195-1253-437a-ba19-ca16ffffa424'),
 UUID('04e2a9ac-9e13-4769-8fbb-f1793a52ceb1'),
 UUID('050dee08-ada7-455e-b15e-c72d745ac92d'),
 UUID('0555b482-f9f7-4c1f-bc1b-a7b8e5fbb83b'),
 UUID('062f7605-4f1d-4ba1-b999-fa202832207c'),
 UUID('063fad22-0fca-4485-ae2c-83612b95ca34'),
 UUID('06869012-ef7c-4c3d-9e66-905f48238ecc'),
 UUID('0706bb51-025a-400d-9ccc-8657325af591'),
 UUID('080788cd-3da4-43a0-977e-daf870faa56d'),

Output of kiara context explain:

Context 'default' ──────────────────────────╮
│                                              │
│   context name   default                     │
│   kiara_id       6978810c-3382-4953-a3cc-…   │
│   size on disk   0 bytes                     │
│   values                                     │
│                    no. values    356         │
│                    combined      5.82 GB     │
│                    size                      │
│                                              │
│   aliases                                    │
│                    no. aliases   0           │
│                    combined      0 bytes     │
│                    size                      │
│                    aliases                   │
│                                              │
│   archives                                   │
│                          it…   ar…           │
│                    al…   ty…   ty…   co…     │
│                   ───────────────────────    │
│                    de…   me…   sq…   {       │
│                                        …     │
│                                        …     │
│                                      }       │
│                    de…   da…   sq…   {       │
│                                        …     │
│                                        …     │
│                                        …     │
│                                      }       │
│                    de…   al…   sq…   {       │
│                                        …     │
│                                        …     │
│                                      }       │
│                    de…   jo…   sq…   {       │
│                                        …     │
│                                        …     │
│                                      }       │
│                    de…   wo…   fi…   {       │
│                                        …     │
│                                      }       │
│                                              │
│                                              │
╰──────────────────────────────────────────────╯

Expected behavior
List all values in the current context, incl. internal ones.

Environment, versions (please complete the following information):

  • OS: MacOS Sonoma 14.5
  • Python: 3.12
  • Versions of Kiara and Kiara plugins used in the related project
kiara                        0.5.10
kiara_plugin.core_types      0.5.1
kiara_plugin.develop         0.5.2
kiara_plugin.onboarding      0.5.1
kiara_plugin.tabular         0.5.4
kiara_plugin.topic_modelling 0.1.dev53+gff7ac02 /Users/mariella.decrouychan/Documents/GitHub/kiara_plugin.topic_modelling
  • Python environment used (e.g. system, conda, ...)
    conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions