Update tags to 10,000+ posts with wpdb?

Update tags to 10,000+ posts with wpdb?