code: func (ssa *SQLStorageAuthority) addCertificatesPerName(
  	ctx context.Context,
  	db dbSelectExecer,
  	names []string,
  	timeToTheHour time.Time,
  ) error {
  	if !features.Enabled(features.FasterRateLimit) {
  		return nil
  	}
  	// De-duplicate the base domains.
  	baseDomainsMap := make(map[string]bool)
  	var qmarks []string
  	var values []interface{}
  	for _, name := range names {
  		base := baseDomain(name)
  		if !baseDomainsMap[base] {
  			baseDomainsMap[base] = true
  			values = append(values, base, timeToTheHour, 1)
  			qmarks = append(qmarks, "(?, ?, ?)")
  		}
  	}
  
  	_, err := db.Exec(`INSERT INTO certificatesPerName (eTLDPlusOne, time, count) VALUES `+
  		strings.Join(qmarks, ", ")+` ON DUPLICATE KEY UPDATE count=count+1;`,
  		values...)
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // addCertificatesPerName adds 1 to the rate limit count for the provided domains,
  // in a specific time bucket. It must be executed in a transaction, and the
  // input timeToTheHour must be a time rounded to an hour.