Track connection for bulk api

[finishes #47484865]