docs(hooks.md, model.js): add warnings about memory limitations of individualHooks #9881
Pull Request check-list
Please make sure to review and check all of these items:
Not applicable, this is a document only change
Description of change
I was very disappointed to realize today that if were to update or destroy a billion instances with individual hooks, Sequelize would try to fetch all billion of them into memory before running the individual hooks. I had mistakenly assumed it would iterate through them in batches or using cursors of some kind...
I wish I had been warned about this before I decided to start using hooks, so I'm adding this warning to the docs.