CFMail - performance issue

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default CFMail - performance issue

    Hi, I have developed a discussion board on which users can subscribe to
    particular topics. Subscribed users receive an email (with link back to topic)
    each time some user contributes to a particular topic they are subscribed to.
    When users post a response to a topic I call an action page that does a number
    of things. It inserts a new record into a table that stores all the topics and
    responses. Then it runs a simple query that looks at a table called
    'subscriptions'. I use a CFMAIL tag to send an email to all users who have
    subscribed to this particular topic. My concern is that if, lets say 1000
    people subscribed to the same topic then this could slow down the processing of
    a users response to a particular topic. In other words a user decides to
    respond to a topic but the processing of this response could be really slow if
    I have to send an email to 1000 people from my action page. Is there are way
    around this? Does this all make sense? Thanks in advance!

    Thunderbirds Guest

  2. Similar Questions and Discussions

    1. Performance issue
      I have an array with around 40 different url values in it. Im trying to cfhttp each URL in turn, and then parse the contents of each URL one by one....
    2. PLEASE help! CFMAIL Issue
      I'm with hopes that someone out there can help me understand a problem I'm having with CFMAIL. I'm using a database in Access... and I've created...
    3. IsInRole Performance Issue
      Hi, We have a very large AD here and I am noticing that the WindowsPrinciple IsInRole function is taking upwards of 1 second to respond with just a...
    4. CFMail Issue - Messages Stuck in Spool
      Hi everyone, I have been using an application that has the ability to allow users to send email. The application is four years old now and I've...
    5. 7.x to 9.x Performance issue in the extreme
      Greetings, The problem: I run an identical program on Server A and Server B. On Server A the program runs in 12 seconds. On Server B it takes 1.5...
  3. #2

    Default Re: CFMail - performance issue

    What have your tests shown? Messages get spooled or queued and are
    processes asyncronously. The actual mail send is a process that checks a
    folder on your server for message files and if it finds them then the files
    or messages are sent. That is separate from a POST action of a form. Are
    you finding that there is a bottle neck at the cfmail tag?

    "Thunderbirds" <webforumsuser@macromedia.com> wrote in message
    news:cv2j90$jae$1@forums.macromedia.com...
    > Hi, I have developed a discussion board on which users can subscribe to
    > particular topics. Subscribed users receive an email (with link back to
    > topic)
    > each time some user contributes to a particular topic they are subscribed
    > to.
    > When users post a response to a topic I call an action page that does a
    > number
    > of things. It inserts a new record into a table that stores all the topics
    > and
    > responses. Then it runs a simple query that looks at a table called
    > 'subscriptions'. I use a CFMAIL tag to send an email to all users who have
    > subscribed to this particular topic. My concern is that if, lets say
    > 1000
    > people subscribed to the same topic then this could slow down the
    > processing of
    > a users response to a particular topic. In other words a user decides to
    > respond to a topic but the processing of this response could be really
    > slow if
    > I have to send an email to 1000 people from my action page. Is there are
    > way
    > around this? Does this all make sense? Thanks in advance!
    >

    Bill Sahlas Guest

  4. #3

    Default Re: CFMail - performance issue

    My database is small at present and so I am not having any performance
    problems. I am however presuming that I will have problems when I have more and
    more email addresses in my DB. I want users to be able to submit replies to
    threads on the discussion board quickly. However the action page that inserts
    the reply also checks for subscriptions to this particular topic and then sends
    emails to all those who have subscribed. Because this code is on the same page
    that inserts the reply data I am concerned that users will have to wait for the
    page to process as CFMAIL loops through the query as follows: <cfmail
    query='GetSubscriptions' TYPE='HTML' SERVER='195.218.875.75' to='#email#'
    from='someemailaddress.com' subject='Message from Forum'> <a
    href='http://.....>some link</a> </cfmail> Hope this makes sense? Thanks!

    Thunderbirds Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139