How to make a subscribe users for the group vk api?

Good afternoon. In General, there is a database with the users who wrote messages in the community. You need to make the function in node js that will send them my message. I thought to go through the while loop, but users in the mysql Database a lot. It turns out the program just hangs or just long runs. Maybe you can somehow query mysql to record all of the user IDs in an array and send again?
March 20th 20 at 11:38
2 answers
March 20th 20 at 11:42
in messages.send for communities in user_ids you can specify up to 100 IDs
just send messages in batches of 100 aydishnikov and all
well, you can still small the interval to put to the limit was not
March 20th 20 at 11:40
why not split the list and pass on it over a few times?

Find more questions by tags VKontakteNode.js