Which' WordPress function is used in programmatically associating the term taxonomy IDs with post IDs?
And does that function have internal mechanisms to make sure no duplicate entries are allowed even if the records were to be added programmatically?
Here of course I'm not talking about wpdb->insert.