Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Efficiency question

    I am writing an SQL statement to display the most recent articles posted into a
    database. I know that I can specify the max rows and use "order by desc" but
    it seems like the database would have to return all the data and then the
    coldfusion server would crop and order it. Is there a more efficient way to do
    this? In otherwords can I have the database return only a specified number of
    entries? Thank you for your help.

    Always in awe,
    Plastech

    PlastechFish Guest

  2. Similar Questions and Discussions

    1. Web Site Efficiency
      Hope i'm in the right group. I'm developing a small non-commercial website to run on windows 2000 pro with IIS. How many simultaneous users (approx)...
    2. Efficiency of string processing
      Hello, I'm doing some fairly heavy-duty text processing under CF 5.0 and 4.5, and processing speed has become a major issue. A prime example...
    3. Database Efficiency
      What is the most efficient way to build an extract database? Specifically, I want to read, via ODBC, one non-MS-Access database table with dozens...
    4. Marshal efficiency
      Folks, As an intermediate step in a small software system that performs a large amount of data gathering, I am using Marshal to store processed...
    5. dataset efficiency question
      Hi, If you have a page that accesses a few db tables, and utilizes all, or most of the data in different ways at different times, do you think it...
  3. #2

    Default Re: Efficiency question

    You can either use

    Select Top 50 column1, column2

    Which will return the top 50 records

    Or you could return records that are between certain dates

    Select column1, column2
    From myTable
    Where myDateColumn Between #CreateODBCDate(Now())# And
    #CreateODBCDate(DateAdd("d", -7, Now())#

    Which will return all records that have a date that is between now and 7 days
    ago

    Ken

    The ScareCrow Guest

  4. #3

    Default efficiency question

    Hi guys....

    Just a quick couple of questions;

    1. If i use the inker modifier on a group of models in my scene...will the
    performance take a noticable hit?
    2. Does using removefromworld and addtoworld to take away any models that
    aren't needed or seen at the time have any
    marked effect on the speed/efficiency of my game?

    The game that i am making at the moment isn't going online....so i don't have
    to be quite as tough on file size, but i still want my game to run smoothly on
    other computers.

    Thanks in advance

    Richard

    Richard.B Guest

  5. #4

    Default Re: efficiency question

    I cannot answer no.1 but the second, using remove/add, works fine without any slowdowns but you will notice a delay when you addToWorld a model for the first time.

    Cheers,

    Michael
    UK
    Michaelcov 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