Same here, add a small dictionary which maps a tracker_url to a tracker_id and use that dictionary to speed up inserting the trackermappings.