Extracting historical comment data to put in our database

We've been having performance issues with retool due to comments pre-loading, and were wondering how we could go about storing comments data in our database instead so we can control what's loaded ourselves.

Do you know where historical comments are stored so we can then store them in our database? We were able to figure out how to store new comments in our database, but not old ones.

Check out this post:

Hey @joinarbor! All note components and their comments are stored in tables in the underlying DB which you have access to with an on-premise deployment, but not on our cloud offering.

Are you seeing issues with all of the notes components, or are there a couple of more problematic ones?