locked
Do Large Rewritemaps Impact on Performance RRS feed

  • Question

  • User825643875 posted

    I have just hit the 250kb maximum size on my rewritemap.

    There are bout 1600 redirects

    I could start another one but I am worried that this might impacting on the performance of my website.

    Any opinions?

    Friday, December 8, 2017 8:15 PM

Answers

  • User61956409 posted

    Hi Will,<o:p></o:p>

    Based on my experience, if your web.config file has too many rewriteMaps, it might potentially slow your app startup. <o:p></o:p>

    With Regards, <o:p></o:p>

    Fei Han<o:p></o:p>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 13, 2017 5:22 AM

All replies

  • User61956409 posted

    Hi will1968,<o:p></o:p>

    If you hit size limitation on rewriteMap, you could try:<o:p></o:p>

    • Split your project and host it as multi web applications on Your IIS website, and do redirection in separate web.config(s) <o:p></o:p>
    • Store rewrite mapping information in external storage, such as database, and retrieve the map and do redirection via your code logic<o:p></o:p>
    • Check if you can use pattern matching, if possible, use pattern matching for URL(s) to reduce the number of mappings and rules<o:p></o:p>

    With Regards, <o:p></o:p>

    Fei Han<o:p></o:p>

    Monday, December 11, 2017 6:17 AM
  • User825643875 posted

    I cannot do pattern matching rules unfortunately.

    The other 2 choices seem complicated.

    At the end of day just need to know what impact (if any) large rewrite maps have on performance?

    Thanks,

    Will

    Monday, December 11, 2017 10:09 AM
  • User61956409 posted

    Hi Will,<o:p></o:p>

    Based on my experience, if your web.config file has too many rewriteMaps, it might potentially slow your app startup. <o:p></o:p>

    With Regards, <o:p></o:p>

    Fei Han<o:p></o:p>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 13, 2017 5:22 AM
  • User825643875 posted

    Thanks for your reply.

    I can deal with a slow start up as long as the performance once started is more or less the same.

    Wednesday, December 13, 2017 10:34 AM