Foster2019
New member
- Local time
- Today, 13:37
- Joined
- Sep 30, 2019
- Messages
- 7
Hi people,
So I read an article posted by theDBguy on 11-03-2018 about database bloat, and I think the conclusion was that append queries and make table queries both cause similar size bloat, and that make table queries where faster.
My questions are,
If I have a table with several columns that would only ever have 20 rows that would keep the same primary key. But all the data in the table except for the primary key changed every week (some cells with empty values) what would cause less bloat.
A) Delete the whole table each time and create a new one using a template and the copy object method, keeping the primary key and having empty values in all other cells. Before using an update query to update the records
B) Delete the whole table each time and create a new one using a template and the copy object method, with no rows or data and using the open recordset add new method
C) Using an update query to null all the values except for the primary key before inserting the new data via the update method keeping the primary key
D) Using a delete query to delete all the rows but not the table then using the open recordset add new method creating a new primary key.
I’ve read that deleting tables every time could cause other problems like instability as mentioned in the article I was reading, but I don’t think I fully understand what that means?
Is deleting rows of data the same as deleting all the values and then updating the empty values when it comes to database bloat? And is deleting a primary key going to cause more bloat than any other column?
The table hasn’t got any relationships.
I hope the above makes sense :/
It’s the end of a long day
Thanks people
So I read an article posted by theDBguy on 11-03-2018 about database bloat, and I think the conclusion was that append queries and make table queries both cause similar size bloat, and that make table queries where faster.
My questions are,
If I have a table with several columns that would only ever have 20 rows that would keep the same primary key. But all the data in the table except for the primary key changed every week (some cells with empty values) what would cause less bloat.
A) Delete the whole table each time and create a new one using a template and the copy object method, keeping the primary key and having empty values in all other cells. Before using an update query to update the records
B) Delete the whole table each time and create a new one using a template and the copy object method, with no rows or data and using the open recordset add new method
C) Using an update query to null all the values except for the primary key before inserting the new data via the update method keeping the primary key
D) Using a delete query to delete all the rows but not the table then using the open recordset add new method creating a new primary key.
I’ve read that deleting tables every time could cause other problems like instability as mentioned in the article I was reading, but I don’t think I fully understand what that means?
Is deleting rows of data the same as deleting all the values and then updating the empty values when it comes to database bloat? And is deleting a primary key going to cause more bloat than any other column?
The table hasn’t got any relationships.
I hope the above makes sense :/
It’s the end of a long day
Thanks people
