Best practice for keeping index up to date with products

I want to keep the index up to date with our product database, including stock, so discontinued products are not shown, and new items appear asap.

Should I regularly replaceall, or should I keep track of changes and insert,update and delete as appropriate?

I intend to use API

@leifnel welcome to the community!

We’ve listed out different approaches here:

Happy to help further, let us know! Thanks!