473,779 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deleting lots of records and record size

I'm working on an application that imports and exports tons of CSV data,
like 64,000 records per file, and six or seven files in a set.

First off, by the tine I import a few hundred thousand records the database
is _huge_. Like 500 meg, although the csv files are only 25 meg in total.
When I compact the database its still 100meg. How do I keep the size down?

Second, I did a manual delete of 300,000 records yesterday by doing a
select-all in the table and then delete. Is there a faster way? Granted my
computer is no speed demon, but it must have taken twenty minutes or more.

Third, during that twenty minutes, Access was displaying that lovely little
"not responding" message in the title bar. Any way to get rid of that
message?

Thanks,

Mike
Nov 13 '05 #1
3 2000
"Mike Turco" <mi*******@yaho o-nospam4me.com> wrote:
Second, I did a manual delete of 300,000 records yesterday by doing a
select-all in the table and then delete. Is there a faster way? Granted
my computer is no speed demon, but it must have taken twenty minutes or
more.


I think a delete query might speed up performance.

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #2

"Mike Turco" <mi*******@yaho o-nospam4me.com> wrote
First off, by the tine I import a few hundred thousand records the database is _huge_. Like 500 meg, although the csv files are only 25 meg in total.
When I compact the database its still 100meg. How do I keep the size down?

Are you importing to a new or existing table? If new, Access defaults the
field types to text usually, and the field size to 255. Import to an
existing table.

Write code using AddNew to import. This is *may* be quicker, and allows you
to put some DoEvents in the Loop, so that your db will not be "locked up"
Darryl Kerkeslager


Nov 13 '05 #3
On Tue, 11 Jan 2005 08:41:32 -0800, "Mike Turco"
<mi*******@yaho o-nospam4me.com> wrote:
I'm working on an application that imports and exports tons of CSV data,
like 64,000 records per file, and six or seven files in a set.

First off, by the tine I import a few hundred thousand records the database
is _huge_. Like 500 meg, although the csv files are only 25 meg in total.
When I compact the database its still 100meg. How do I keep the size down?

Second, I did a manual delete of 300,000 records yesterday by doing a
select-all in the table and then delete. Is there a faster way? Granted my
computer is no speed demon, but it must have taken twenty minutes or more.

Third, during that twenty minutes, Access was displaying that lovely little
"not responding" message in the title bar. Any way to get rid of that
message?

Thanks,

Mike

Deleting a lot of records which are indexed takes a long time
particularly on back ends. Depending on the database you are using you
can kill the table and replace with an empty copy, use delete object
whatever, or delete the indexes before deleting the records and then
recreate them. The latter may be needed if you can't kill the table
(eg if there are relationships).
David
Nov 13 '05 #4

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

Similar topics

2
1159
by: Rich | last post by:
I have a page that list all records in an access table. I would like to add a delete record function to the list to delete selected records. Here is my current code: ********************************************************* <% Dim strDB, con Dim rs strDB = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
1
6116
by: Mark | last post by:
This question refers to a main form with a continuous form subform. After an error occurs after entering several records in the subform, how can I delete all the data in the main form and all the records in the subform? I have tried undoing both the main form and the subform and I have tried deleting the record in the main form. Thanks! Mark
3
2756
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the following code: Private Sub Command28_Click() On Error GoTo Err_Command28_Click
2
5562
by: Emmett Power | last post by:
Hi, I have an Access table with a number of records which refer to the same person but with data in different fields. So for example the table would look like this: Name..............Field 1...................Field 2 Fred Smith........Red John Brown........Blue Fred Smith...................................Truck
2
1901
by: uv | last post by:
Hi! I'm having problems submitting a new record through the form. I'm working with the wizard and I've added a control button to my form for entering entering a new record but for some reason it only works for the first record I enter. The same goes for deleting a record. It says I can't access the records, and that goes for both making or deleting. I'd appreciate your help very much, uv
1
2397
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting about 80 records from the Orders table. 80 out of a 1000 records. Now our data entry form shows our customer addresses, but not customer order history. When looking at all of the tables, customer, payments, orders, they still have all of the...
2
1867
by: Stuart Norris | last post by:
Dear Readers, I am developing an application that stores "messages" in array list and writes new entries to a disk file at the end. This file is used incase the user choses to restart the program. When the program is restarted the messages are replayed so the application knows where it is up to. I am not allowed to use a **database** I have been instructed to use a flat file. The application I am replacing does that.
1
2579
by: Shortstuff12345 | last post by:
This can be ignored... I did a bunch more searching and tried a few more things listed on different posts. I was able to get the delete query to work properly by adding a statement in the code (Me.Requery) to refresh the information on the form and the #deleted went away. -------------------------------------------------------------------------------------------------------------- First of all, I want to say thanks for help on my...
11
3680
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night) and the 'employee name'. There is another table which assigns an ID to the Shifts, i.e. 1,2 and 3 for morn, eve & night shifts respectively. From the mother table, the incentive is calculated datewise for each employee as per his shift duty. In...
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10306
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.