(Just journaling as i dig) each attachment's API json data has a 'message_link' (presumably to the message that attached the attachment). If this is being recalculated each time, that would drive the queries.
(Just journaling as i dig)
each attachment's API json data has a 'message_link' (presumably to the message that attached the attachment).
If this is being recalculated each time, that would drive the queries.