Enable Unicode=slow performance

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

  1. #1

    Default Enable Unicode=slow performance

    My site is running CF MX6.1 and SQL Server 2000 using a JDBC driver. When I
    edit the DSN in CF Admin to enable unicode, performance drops off big time and
    the site hangs! When I uncheck the enable unicode, performance is great again.

    I really need to "globalize" my app and must have unicode enabled so that my
    cfqueryparam inserts chinese, arabic, etc. I don't want to have to add in the
    Ns to all my queries.

    I turned unicode on for another DSN/different DB and performance was fine and
    the chinese/arabic work just fine, so it seems to be something specific to one
    DSN/DB.

    Why does turning on unicode crash the app? Is there anyting I can change in
    the DSN/DB/CFADMIN to get performance back to normal or even improve it. The
    site is unusable with unicode turned on so I'd really appreciate the help.

    Thanks,
    Don



    dkerr Guest

  2. Similar Questions and Discussions

    1. Slow performance of website
      Hi, I'm not really much of a techie, but I'm having problems with my intranet server, its on a windows 2000 machine with service pack 4, with...
    2. Slow Performance
      I'm having difficulty with the browsing function in elements 2. It will work fine for a while and then slow my computer dramatically. I have a 1gig...
    3. Slow performance from Word X
      I have a document created in Word 2000, then opened in Word X on my Mac. (G5 1.8 single processor, 10.3.5, 1GB memory). The document is letter size,...
    4. Dog, Dog slow performance
      I've got 2+ gz, 512 ram, 40 gig HD about 18 gig full, XP Pro, working with file sizes in the 200 to 300 meg range. Everything is slow, slow, slow,...
    5. Dog slow performance?
      Norton SystemWorks? Network volume? Nobody else is seeing performance that bad without an obvious reason....
  3. #2

    Default Re: Enable Unicode=slow performance

    i think maybe you misunderstand the use for that DSN option. maybe
    [url]http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=F9553D86-20[/url]
    ED-7DEE-2A913AFD8651643F might help, basically turning on this option doesn't
    make your text data unicode. it simply controls how cfqueryparam, etc. behave.

    there shouldn't be any performance hit associated with using this option, all
    it does is add "sendStringParametersAsUnicode=true" to the JDBC url. i suggest
    it's something else. what JDBC driver? are the required columns "N" datatypes?

    PaulH Guest

  4. #3

    Default Re: Enable Unicode=slow performance

    Thanks Paul. I am trying to get cfqueryparam to work and I did find this blog
    posting prior to submitting my post. That is why I was trying to enable
    unicode in the DSN. I'm using the SQL Server DNS that comes with MX6.1
    including an update in the macromedia_drivers.jar file. I forget which version
    right now. All of my columns are nvarchar, ntext, etc. datatypes.

    Yet, I still get a major performance/hang up of the site when I check off this
    box. I was thinking that there might be something specific to the DNS or
    Database settings that would cause it to hang. I tried restarting CF and SQL
    Server but the problem persists.

    One of my other DSN's work fine on the same server.

    Any other ideas on things to check?

    Thanks!
    Don

    dkerr Guest

  5. #4

    Default Re: Enable Unicode=slow performance

    well i guess simple things first. delete, re-create that DSN. after that you
    better double check your datatypes as i think that's the only thing that might
    effect performance (though never to the point of hanging). if you pass unicode
    data in a WHERE clause against a non-N datatype column, you could force a table
    scan vs using an index (reverse is true too i think). i guess you better also
    look into whan the indexes on that table were created (ie did you change the
    schema to use unicode w/out re-indexing). though i think that's more of a long
    shot.



    PaulH 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