- Local time
- Today, 11:31
- Joined
- Feb 19, 2013
- Messages
- 17,816
if a value contains commas, then you either need to use a different delimiter such as a semi colon or pipe or you should be specifying text delimiters for the text fields when the file is created. But it may be your source app does not have that ability.
Either way it is also not clear whether the data you are importing is all new data to replace all 'old' data. Or a mixture of both - i.e. records already imported plus new records. And as far as the already imported records are concerned, whether in a subsequent import they may have changed in some way which implies the need for an update rather than a delete/insert. Or perhaps a record already imported does not exist in the new import, implying the requirement is for it to be deleted.
At the moment you are causing 'big bloat' by deleting all and reimporting. Updating a record will cause a small amount of 'recoverable' bloat on C&R as will deleting a record. Whilst inserting new records will cause 'bloat' in the sense that they require space, but of course that space will not be recovered on a C&R.
Don't know the numbers but say you are importing around 10,000 records at a time. If the scenarios above apply, perhaps a 100 or so records require updating and maybe 100 deleting and 1000 are new. So very simplistically, at the moment your db doubles in size as a result of the import process. But by managing the import the bloat is reduced to around 1.2% of which 0.2% is recoverable through C&R.
Edit:
If that is your only input then nothing to stop you creating a new empty database rather than deleting in an existing database and importing to that and then replacing the original file.
Either way it is also not clear whether the data you are importing is all new data to replace all 'old' data. Or a mixture of both - i.e. records already imported plus new records. And as far as the already imported records are concerned, whether in a subsequent import they may have changed in some way which implies the need for an update rather than a delete/insert. Or perhaps a record already imported does not exist in the new import, implying the requirement is for it to be deleted.
At the moment you are causing 'big bloat' by deleting all and reimporting. Updating a record will cause a small amount of 'recoverable' bloat on C&R as will deleting a record. Whilst inserting new records will cause 'bloat' in the sense that they require space, but of course that space will not be recovered on a C&R.
Don't know the numbers but say you are importing around 10,000 records at a time. If the scenarios above apply, perhaps a 100 or so records require updating and maybe 100 deleting and 1000 are new. So very simplistically, at the moment your db doubles in size as a result of the import process. But by managing the import the bloat is reduced to around 1.2% of which 0.2% is recoverable through C&R.
Edit:
The only input is from a single Excel file that is generated from another online program.
I want a way to import the the new Excel file into the Access db and be able to replace it when a new Excel file is generated.
If that is your only input then nothing to stop you creating a new empty database rather than deleting in an existing database and importing to that and then replacing the original file.
Last edited: