Skip to content

Performance degradation in long-running sessions with Memory engine, possibly related to metadata_dropped directory #363

@yidigo

Description

@yidigo

In a long-running chdb session where I repeatedly create, query, and drop ENGINE=Memory tables, I've observed significant performance degradation. A simple query that is very fast at the beginning of the session takes progressively longer to execute as more operations are performed.

Concurrently, I've noticed that the /.chdb_data/metadata_dropped subdirectory is continuously populated with new files, and these files are not automatically cleaned up during the session. I suspect that the increasing number of files in this directory is causing chdb to slow down during certain internal operations, leading to the performance hit.

I have tried executing DROP TABLE to clean up the tables, and while the command succeeds, it does not resolve the performance issue or clean up the files in metadata_dropped.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions