4paradigm / 4paradigm/OpenMLDB

Delete unused index when deploy sql

Abierto
#696 2 comentarios 1 reacción 1 asignado Reclamado por @dl239 Ver en GitHub
enhancement
Lenguaje dominante
C++
Estrellas
1.7k
Forks
331
Merge medio
12 d 12 h
PR fusionados (30 d)
1

Descripción

OpenMLDB will create a default index if there is no index option in create statement. But this index may not be used in deployment SQL, which will use much memory. So we will delete the unused index when `Deploy` SQL

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look for the code that creates default indexes and the deployment SQL logic. Understand how indexes are tracked and which are considered 'unused' during deployment. The change likely involves modifying the index management logic in the deployment step to clean up unused indexes. Test by creating a table with a default index, deploying a SQL that doesn't use it, and verifying the index is removed without affecting performance.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
sql
Área
databases, machine-learning
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.