algolia / algolia/algoliasearch-client-javascript
Add option to skip failing records on saveObjects() rather than letting the complete operation fail
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.4k
- Forks
- 226
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I tried to add records to my index and one of those records exceeds the size:
` content: '{"message":"Record at the position 69 objectID=0db0a327-b567-4225-bd4e-9f1019c930cd is too big size='... `
Apparently the complete batch operation fails, i.e. no records are written to the index at all. Is there any option to just skip failing records and still write the others to the index? I have not found such an option in the docs.
The only (not so nice) option I see is to check the error response, get the failed record IDs, remove them from the record list and try the operation again.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza en el punto de entrada saveObjects() y su documentación; después, reproduce el comportamiento por lotes con un registro sobredimensionado. Se considera terminado cuando la API ofrece una forma documentada de omitir los registros que fallan y seguir escribiendo los registros válidos del lote.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100