# 100만 개 게시물에서 여러 정규식으로 문자열을 가장 빠르게 교체하는 방법은?

**URL:** <https://meta.discourse.org/t/whats-the-fastest-way-to-replace-strings-with-multiple-regexes-in-1-million-posts/161749>\
**Category:** Product Support\
**Created:** [8월 22, 2020, 10:21오전 UTC](https://meta.discourse.org/t/whats-the-fastest-way-to-replace-strings-with-multiple-regexes-in-1-million-posts/161749 "2020-08-22T10:21:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [8월 22, 2020, 1:55오후 UTC](https://meta.discourse.org/t/whats-the-fastest-way-to-replace-strings-with-multiple-regexes-in-1-million-posts/161749/4 "2020-08-22T13:55:51Z")

</div>

이미 가져온 Discourse 데이터, 특히 게시물 ID와 연결된 데이터(사용자, 주제, 첨부파일, 영구 링크 등)에 영향을 주지 않고 게시물만 다시 가져오는 방법이 있는지 알고 싶어요.

가져오기 과정이 너무 길어서, 무언가를 잊어버려서 전체를 다시 가져와야 하면 며칠이나 더 걸릴 것 같아요.

스크립트가 게시물을 가져올 때 시간당 약 50,000개의 Discourse 게시물을 생성했어요. 왜 rebake(재처리)는 그보다 훨씬 더 오래 걸리는 걸까요?

---

_[View the full topic](https://meta.discourse.org/t/whats-the-fastest-way-to-replace-strings-with-multiple-regexes-in-1-million-posts/161749)._
