473,396 Members | 1,760 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,396 software developers and data experts.

Large number of records

Hi

I am looking at getting a large number of records (1.8m) into a
datatable.The data resides in SQL Server, but can be moved to csv,xml
if required (for performance).

Is this type of load, in 1 go, feasibile? What sort of speed can I get
it down to

This is for a Winforms application

Thanks,
Jerry

Nov 17 '05 #1
5 2475
So you want to...decrease performance..., right? Because, you will probably
not get any more efficient then putting it in a database that is designed
for data access and processing. Why would you think that CSV and XML are
more performant than a database? If you design the database and right
define the tables and relationships correctly, data access can be nearly
instantaneous.
<Je***************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi

I am looking at getting a large number of records (1.8m) into a
datatable.The data resides in SQL Server, but can be moved to csv,xml
if required (for performance).

Is this type of load, in 1 go, feasibile? What sort of speed can I get
it down to

This is for a Winforms application

Thanks,
Jerry

Nov 17 '05 #2
Peter,

I was having trouble getting the database to select the records quickly
(1.7million) so I thought that a csv file(essentiall the query
results) that was just read straight from disc (no query overhead),
might be more proficient.

Thanks for your comments
Jerry

Nov 17 '05 #3
I can help, but you'll have to give me a lot more details,
specifically, what the end goal of this process is. If you do wanna go
the datatable route, I can tell you that the datatable in 1.0 and 1.1
most likely will not handle the data memorywise. The 2.0 datatable can
handle the data, but will still probably take a couple hundred mb of
memory from what I've seen. I'm not sure how long it will take to load
the datatable, but I could see it taking upwards of a minute or more.
If you want to read from a csv file, you can try out my parser I sell,
http://www.csvreader.com . I'm just not sure how many of these records
you're trying to actually deal with at any point. If your issue is just
that you have 1.7 million rows of data in the db, and you're doing
queries against it for portions of the data, say like a couple hundred
rows, and that's not happening quickly, then your issue is most likely
in the db structure. I'd be looking at the indexing on the table vs
your query in that case.

Bruce Dunwiddie

Je***************@gmail.com wrote:
Peter,

I was having trouble getting the database to select the records quickly
(1.7million) so I thought that a csv file(essentiall the query
results) that was just read straight from disc (no query overhead),
might be more proficient.

Thanks for your comments
Jerry


Nov 17 '05 #4
Hi Jerry,

Think again. No way on earth you're gonna beat SQL performance using CSV,
and certainly not Xml (In-memory or not, doesn't matter).
Stick to database and read up on how to properly design/query Sql. :)
--
Robert Jeppesen
Durius
http://www.durius.com/

<Je***************@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Peter,

I was having trouble getting the database to select the records quickly
(1.7million) so I thought that a csv file(essentiall the query
results) that was just read straight from disc (no query overhead),
might be more proficient.

Thanks for your comments
Jerry

Nov 17 '05 #5
What do you plan to do with 1.7 milliion records in a DataTable?

In fact, I'm not sure of this, but a DataTable is easily serialized into
XML. You might store the data as an XML DataTable, and just deserialize it.
There are other factors in play as well. SQL Server uses quite a bit of
caching, so if the data is not being fetched for the first time, it may well
remain in a memory cache, which would definitely be faster. But again, why
would you need all 1.7 million records at one time?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<Je***************@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Peter,

I was having trouble getting the database to select the records quickly
(1.7million) so I thought that a csv file(essentiall the query
results) that was just read straight from disc (no query overhead),
might be more proficient.

Thanks for your comments
Jerry

Nov 18 '05 #6

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

Similar topics

6
by: Greg | last post by:
I am working on a project that will have about 500,000 records in an XML document. This document will need to be queried with XPath, and records will need to be updated. I was thinking about...
1
by: Ian | last post by:
I want to open a form at a particular record, but I think I'm running into problems because the recordsource query is executing asynchronously. In the form's open event I use...
24
by: Salad | last post by:
Every now and then I see ads that state something like "Experience with Large Databases ...multi-gig...blah-de-blah" And I have to laugh. What's the difference between a large or small database? ...
3
by: vanvee | last post by:
Hi I have an application for my company's HR department where we store resumes for candidates we receive. I have an application that uses VB.Net and ADO.Net and data bindings (through code) to...
5
by: Louis LeBlanc | last post by:
Hey folks. I'm new to the list, and not quite what you'd call a DB Guru, so please be patient with me. I'm afraid the lead up here is a bit verbose . . . I am working on an application that...
57
by: Chris Foote | last post by:
Hi all. I have the need to store a large (10M) number of keys in a hash table, based on a tuple of (long_integer, integer). The standard python dictionary works well for small numbers of keys,...
3
by: elena | last post by:
Hi, All I have text file ASCII with record length of 388 bytes, no record delimeter and size of the file is 562477780 bytes and 1449685 records all togeter. How can i read such file record by...
24
by: Frank Swarbrick | last post by:
We have a batch process that inserts large numbers (100,000 - 1,000,000) of records into a database each day. (DL/I database.) We're considering converting it to a DB2 table. Currently we have...
2
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, I'm faced with a classic problem of how to update a large number of records from a web page. I;m trying to build an interface that will display recordset in the order of 3000 rows and allow...
2
by: ARC | last post by:
I'm testing a user's db that contains a very large number of records. I have an invoice screen, with an invoice select dropdown box that shows all invoices, and the customer's name, etc. With...
0
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...
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.