Hi,
Hope somebody can help because i've looked everywhere else fo ran answer.
I'm connecting to an Access table with 100+ rows of data of approx 20
columns wide. I'm using getstring to "Quickly" display it in a table, but
it's un-useably slow. Any suggestions?
Thanks
Seán 9 2728
Code? How many people are accessing the site? Are you destroying your
objects? Does the server have a 66MHz PI?
Ray at work
"Seán Meehan" <se*********@blueyonder.co.uk> wrote in message
news:T5***************@news-binary.blueyonder.co.uk... Hi,
Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table, but it's un-useably slow. Any suggestions?
Thanks
Seán
"Seán Meehan" <se*********@blueyonder.co.uk> wrote in message
news:T5***************@news-binary.blueyonder.co.uk... Hi,
Hope somebody can help because i've looked everywhere else fo ran
answer. I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table,
but it's un-useably slow. Any suggestions?
Thanks
Seán
Here's an excellent article on using GetString, GetRows and recordset
iteration. <g> http://www.aspfaq.com/show.asp?id=2467
Specifically, check out the Analysis:GetString:Pros section that
discusses the use of the NumRows parameter to output a "burst" of rows.
HTH
-Chris
Ray,
I'm the only one using it at the moment for testing. It's sitting on a
dual pII 200 machine running NT4 Server. It only seems to be when I'm
trying to put the data into a table format. I've tried reading the
recordset into an array using getrows, closing the recordset and
connection and then building the table and there was no speed
difference, Yet if I just response.write straight to the screen it
displays in seconds. This rules out the database side slowing it down,
wouldn't you agree? Any help would be appreciated as it's driving me
mad.
Thanks Again,
Seán
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
"Chris Hohmann" <hohmannATyahooDOTcom> wrote in message
news:%2*****************@TK2MSFTNGP11.phx.gbl... "Seán Meehan" <se*********@blueyonder.co.uk> wrote in message news:T5***************@news-binary.blueyonder.co.uk... Hi,
Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table, but it's un-useably slow. Any suggestions?
Thanks
Seán
Here's an excellent article on using GetString, GetRows and recordset iteration. <g>
http://www.aspfaq.com/show.asp?id=2467
Specifically, check out the Analysis:GetString:Pros section that discusses the use of the NumRows parameter to output a "burst" of rows.
HTH -Chris
Excellent article Chris, although I wouldn't have thought 100 or so records
was a large amount of data to read in? I'm just doing a "Select * from
table" at the moment and I'm going to try defining the columns instead and
see whether that helps. If I ever solve this one I'll get back to you.
Regards,
Seán
Post the relevant code snippet. One way to speed things up would be to not
do a select *. Instead, do a select [something],[somethingelse],etc. But,
I doubt that's what is causing your slowness issue.
Ray at work
"Seán Meehan" <an*******@devdex.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl... Ray,
I'm the only one using it at the moment for testing. It's sitting on a dual pII 200 machine running NT4 Server. It only seems to be when I'm trying to put the data into a table format. I've tried reading the recordset into an array using getrows, closing the recordset and connection and then building the table and there was no speed difference, Yet if I just response.write straight to the screen it displays in seconds. This rules out the database side slowing it down, wouldn't you agree? Any help would be appreciated as it's driving me mad.
Thanks Again,
Seán
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
"Seán Meehan" <se*********@blueyonder.co.uk> wrote in message
news:cy****************@news-binary.blueyonder.co.uk... "Chris Hohmann" <hohmannATyahooDOTcom> wrote in message news:%2*****************@TK2MSFTNGP11.phx.gbl... "Seán Meehan" <se*********@blueyonder.co.uk> wrote in message news:T5***************@news-binary.blueyonder.co.uk... Hi,
Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx
20 columns wide. I'm using getstring to "Quickly" display it in a
table, but it's un-useably slow. Any suggestions?
Thanks
Seán
Here's an excellent article on using GetString, GetRows and
recordset iteration. <g>
http://www.aspfaq.com/show.asp?id=2467
Specifically, check out the Analysis:GetString:Pros section that discusses the use of the NumRows parameter to output a "burst" of
rows. HTH -Chris
Excellent article Chris, although I wouldn't have thought 100 or so
records was a large amount of data to read in? I'm just doing a "Select * from table" at the moment and I'm going to try defining the columns instead
and see whether that helps. If I ever solve this one I'll get back to you.
Regards,
Seán
Can you post some code? What's your content to formatting ratio? What I
mean is:
<style type="text/css">
td{
[[Your style definition for the td tag here]]
}
</style>
....
<td>blah blah blah</td>
<td>blah blah blah</td>
<td>blah blah blah</td>
....
Is better than:
....
<td [[A whole bunch of inline style stuff]]>blah blah blah</td>
<td [[A whole bunch of inline style stuff]]>blah blah blah</td>
<td [[A whole bunch of inline style stuff]]>blah blah blah</td>
....
HTH
-Chris
Check out HTML table optimization / optimisation eg.: http://www.websiteoptimization.com/speed/4/
Chris.
"Seán Meehan" <se*********@blueyonder.co.uk> wrote in message
news:T5***************@news-binary.blueyonder.co.uk... Hi,
Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table, but it's un-useably slow. Any suggestions?
Thanks
Seán
Try using GetRows and retrieving 1 to 10 records at a time like this:
' Prepare a SQL query string
strsql = "SELECT Field1,Field2,Field3,Field4 FROM tblData"
' Execute the SQL query and set the implicitly created recordset
Set objRS = objCN.Execute(strsql)
' Write out the results using GetRows in a loop
Response.write "<pre>"
Do While Not objRS.EOF
RecordsArray = objRS.GetRows(10)
' Print out the array
For i = 0 To UBound(RecordsArray, 2)
Response.write RecordsArray(0, i)
Response.write vbTab
Response.write RecordsArray(1, i)
Response.write vbTab
Response.write RecordsArray(2, i)
Response.write vbTab
Response.write RecordsArray(3, i)
Response.write vbTab
Response.write vbCrLf
Next
Loop
Response.write "</pre>"
Seán Meehan wrote: Hi,
Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table, but it's un-useably slow. Any suggestions?
Thanks
Seán
I believe the 200MHz processors were Pentium Pro's, as if it matters.
With most browsers, the entire table has to be downloaded and sized before
it can be displayed.
Your table is approximately 20 columns by 100 rows, you can speed up the
table by specifying the widths of your columns.
Another trick is to flush out part of the table. For example:
Do While not RS.EOF
iCount=iCount+1
Response.write "<tr><td>" 'etc.
if (iCount mod 10 =0) then
Response.write "</table><table>"
Response.flush
end if
RS.MoveNext
Loop
However, it's even more important to ensure that you specify column widths,
as your columns may not line up correctly.
"Seán Meehan" <an*******@devdex.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl... Ray,
I'm the only one using it at the moment for testing. It's sitting on a dual pII 200 machine running NT4 Server. It only seems to be when I'm trying to put the data into a table format. I've tried reading the recordset into an array using getrows, closing the recordset and connection and then building the table and there was no speed difference, Yet if I just response.write straight to the screen it displays in seconds. This rules out the database side slowing it down, wouldn't you agree? Any help would be appreciated as it's driving me mad.
Thanks Again,
Seán
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sulla |
last post by:
I ran into an interesting "problem" the other day when I was working
on a very simple zip code utility function.
I have a table in Oracle with the following columns: zipcode, state,
latitude,...
|
by: ddsvi78 |
last post by:
I am a complete idiot when it comes to access. Now that said, I work
for a computer security company and one of our customers came to us
with an access problem.
They had been running fine for a...
|
by: Paul K |
last post by:
I've run into a problem using this method that I have
been able to work around, but I think that there is a
more elegant way.
I create an array of 256 bytes and use the
SHBrowseForFolders API...
|
by: GTi |
last post by:
I have a SQL database and some fields may be null.
This will trow an exeption:
string s=new string;
s=String.Format("{0}",myReader.GetString(1));
s=String.Format("{0}",myReader.GetString(2));...
|
by: Fredrik Melin |
last post by:
Running a solution with about 20 sub-projects total about 150.000 lines of
code.
Typing code is slow (delay when typing fast).
Pressing next line while debugging is slow.
Pressing Ctrl-F for...
|
by: michael |
last post by:
Hi,
I am trying to write an ASP.NET web app, in Visual Basic.NET, using
Visual Studio.NET 2004, .NET framework 1.1.4322 SP1
Running the project/app on localhost while in dev/write/debug stage
...
|
by: cok |
last post by:
Hi, All
I have a question about Encoding.ASCII.GetString.
I want convert a byte array to a string, I use
Encoding.ASCII.GetString(byteArray)
(byteArray is something like )
but the retult...
|
by: Frank Milverckowitz |
last post by:
Hi,
Newbie question about SqlDataReader column value access...
In java jdbc code to get a value from a table column we can pass the column
name (instead of an int index or offset):
String...
|
by: mikfrost |
last post by:
I'm trying to read the exif info in a JPG image file. Reading the
ImageDescription field (270) that contains "abcćĺř" only reads the
first 3 characters "abc". The field was written with ACDSee...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |