Question: Storing last value only and storing static data.
- Lenguaje dominante
- Java
- Estrellas
- 6.4k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 115
Descripción
I am collecting IT infrastructure metrics - cpu, ram, network I/O etc. which fits nicely in iotDB since I need to track this over time.
I am also collecting infrastructure detail such as up time, host operating system etc.
As the uptime (as a long integer) is always increasing I dont need to keep the data in a timeseries and I am only interested in the last value as such I am storing this in a relational database along with other static data such as host OS name which should never change. The data is collected ever 5 minutes but is unlikely to change so I just do an "update" statement in the RDBMS.
I would like to store this in iotDB if possible to avoid having to support 2 databases.
Is there a way to;
1. Store static information which does not change?
2. Store a long integer but only keep the last value?
Should I use TTL to limit the amount of data? I only see reference to TTL at the storage group level. Im guessing TTL isnt the answer since all data may disappear if the host stops sending data.
Should I delete and insert every time? Will this affect performance?
Guía de contribución
Línea de trabajo
No se nombran archivos de código fuente, pruebas ni puntos de entrada. Empieza revisando el soporte existente de IoTDB para mediciones estáticas, la retención del valor más reciente, el comportamiento de TTL y las operaciones de actualización o eliminación/inserción. Se considerará terminado cuando exista un enfoque documentado y decidido que cubra ambos casos de almacenamiento solicitados y las preocupaciones sobre la pérdida de datos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- databases
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100