algolia / algolia/algoliasearch-client-javascript
Add option to skip failing records on saveObjects() rather than letting the complete operation fail
- Langage dominant
- TypeScript
- Étoiles
- 1.4k
- Forks
- 227
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par le point d’entrée saveObjects() et sa documentation, puis reproduisez le comportement par lots avec un enregistrement trop volumineux. Le travail est terminé lorsque l’API propose un moyen documenté d’ignorer les enregistrements en échec tout en continuant à écrire les enregistrements valides du lot.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100