473,320 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Reading from dataBase

Hi group,
Sorry my English is very little
I've question about reading data from database. In sql2k I've table (50k+
records). Commerce application writing to this table same data (up to 5
records per minute).
My application must show new records for example in dataGrid (refresh approx
once per 15 seconds - max).
If I use to refresh dataSet:
myDataAdapter.Fill(MyDS, "Table1"); //event onTick for Timer

dataGrid is refreshed very slow (approx. 10 minuts for 45k rekords). I use
this on one computer. I thing If I use this on different computer
(DataSerwer and few clients with myApps) this will be more slowest.
How fast read from dataBase only new date.

Maybe somebody have some different idea for this solution.

Best regards

PawelR
Nov 16 '05 #1
1 1504
Hi/Cze¶æ Pawe³

If i were you, i'll try to realize this goal by
structure of DB.

If there are only INSERT commands that modifies recordset,
then you can provide unique ID for each record or datetime
field.

A) integer ID case
1. set: int id=-1; (out of recordset ID's range)
2. select all records with ID greater than "id"
3. select or find max id and set: id=FindMaxId(recordset);

B) datetime case (ID_DATETIME)
1. set: Datetime lastTime=FindMinIdDatetime(recordset);
2. select (for refresh) all records with ID_DATETIME greater
or equal to "lastTime".
- here is possibility of cloning records with the same ID_DATETIME
3. select of find max "lastTime": lastTime=FindMaxDatetime(recordset);

HTH & Pozdrowienia!

Marcin
Hi group,
Sorry my English is very little
I've question about reading data from database. In sql2k I've table (50k+
records). Commerce application writing to this table same data (up to 5
records per minute).
My application must show new records for example in dataGrid (refresh approx
once per 15 seconds - max).
If I use to refresh dataSet:
myDataAdapter.Fill(MyDS, "Table1"); //event onTick for Timer

dataGrid is refreshed very slow (approx. 10 minuts for 45k rekords). I use
this on one computer. I thing If I use this on different computer
(DataSerwer and few clients with myApps) this will be more slowest.
How fast read from dataBase only new date.

Maybe somebody have some different idea for this solution.

Best regards

PawelR

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dariusz | last post by:
I have PHP code (below) which reads data from a MySQL format database. The problem I am having is trying to find out when the last ID entry was made. When the script is executed, the $gbID is...
1
by: Google Mike | last post by:
Tell me if this can be done, and if I have a misconception here. I am writing an app that will be served up in an app farm, and therefore I need to move the session information to the client, not...
2
by: Dariusz | last post by:
Below is part of a code I have for a database. While the database table is created correctly (if it doesn't exist), and data is input correctly into the database when executed, I have a problem...
0
by: Andy | last post by:
Hi, In the code below (not pretty I know but it's an early version :-P) I'm having problems reading the data object back in. If I move the reading code to immediately after the section where it...
7
by: John Pote | last post by:
Hello, help/advice appreciated. Background: I am writing some web scripts in python to receive small amounts of data from remote sensors and store the data in a file. 50 to 100 bytes every 5 or...
2
by: Ed | last post by:
Hope someone can help me out... I have been tasked to read some image data from an sql database and save the files to flat files. OK, sounds easy as I'v used BLOBs before. But this is an old...
7
by: ianenis.tiryaki | last post by:
well i got this assignment which i dont even have a clue what i am supposed to do. it is about reading me data from the file and load them into a parallel array here is the question: Step (1) ...
0
by: Andrea | last post by:
Hi, I've a problem reading a field containing a crypted string. I read the field via JDBC but when I decrypt the string I obtain a sequence of strange characters (if I output them I obtain a...
2
by: Derik | last post by:
I've got a XML file I read using a file_get_contents and turn into a simpleXML node every time index.php loads. I suspect this is causing a noticeable lag in my page-execution time. (Or the...
1
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello All, I am trying to read an Excel spreadsheet (xls) programmatically. I have used the ODBC database route and have opened the Excel spreadsheet and then using a 'CRecordset', I read each...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.