datasets - working with alot of data

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,

I am working with databases,datasets, sqlserver 2000, vb.net, vs.net 03

But this is more of a general question.

I like to do my dataacces by reading in the whole db table into a
dataset(ds) and then doing searches inside of that ds. Change the found data
and then at program completion updata that ds to the table in the db. I like
this way because i can use the intelisense by saing row.columnname and
dont have to wory abour sql querry laguage. I drag a data adapter onto the
designer specify a select query and it generates the insert and update for
me.

Is this the way it should be done?
I am working on a project now that will potentialy have millions of records
in that table. (After a while hundreds of millions, but am planing of moving
the oldest million records into a history table, history will probably not
be used ever) Which i will then read into a dataset and haveto search
through. The size will slow this down.
Is the better solution to read in smaller chunks and query the db like 100
times per program run to make the dataset smaller or to move older
information into a history table?
Should i have broken this big table into some 5 smaller tables with same
exact column names about 30 columns in all tables?

As you can see i have very little experience with this.

Another question is that i am now using a reqular int colum as the primary
key. None of the other data is unique. I could have made a primary key out
of 4 other varchar columns. Should i have done that? The idea there was that
the 4 columns would have slowed data access as per article i found online.
But now i am limited to 2^31-1 primary key values and if i move the records
into history table i will have to decrement this column for each record in
this table (which will always stay at about 1million records). Anyone know
of an easy way to do this? Tables without a primary key would make updates
much harder and the querys would not be generated for me automaticaly by
visual studio.

Please give me your experienced input on this matter. Hopefully the lenght
of this post will not scare people off from reading it.

I will try to post the all helpfull inputs on this topic to other sites
because i beleive this is important and i couldnt find the answears
elsewere.

Thank you.


.



Relevant Pages

  • Re: datasets - working with alot of data
    ... But this is more of a general question. ... of moving the oldest million records into a history table, ... While there are applications where users know the primary key (especially on ... of this post will not scare people off from reading it. ...
    (microsoft.public.dotnet.general)
  • Re: Auto-generate recently visited record-list
    ... Form Company with CompanyID as primary key and autonummered / ... Table History with LogID and FkID ... Allen Browne - Microsoft MVP. ... On the company form I added a combo list CompanyName ORDER BY Inserting ...
    (comp.databases.ms-access)
  • Re: A possible arguement against unschooling (was Re: When even a Republican can see it....)
    ... I'm in favor of broad education--but I think reading things you find ... reading things I find interesting--Casanova's memoirs, ... studying the overall history and then later adding in the ... "Studying the overall history" at the level it's possible to do in K-12 ...
    (rec.arts.sf.fandom)
  • Re: Another bunch of Flood Question....
    ... as I lack any reliable information. ... interpretation of the information have been unreliable? ... Look, Jim, if words mean anything, then any reading of the literal texts ...
    (talk.origins)
  • Re: Rainy, Lazy, Sunday afternoon
    ... My mum agrees with you, so I decided to save my reading energy for other things, and am currently enjoying Who Murdered Chaucer, by Terry Jones et al. Brilliant alternative look at a good chunk of history, and well written to boot. ... Alan is reading Northern Lights to James as bedtime story. ... I don't even *collect* purples, ...
    (rec.crafts.textiles.quilting)