magento / magento/architecture

DB : Table negotiable_quote use 2.894 GB space

Open
#515 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
278
Forks
146
PR merge metrics
No merged PRs in 30d

Description

Hi,

In ou production database, we found that the `negotiable_quote` table takes up a significant amount of space, almost 3 GB.

```
MariaDB [information_schema]> SELECT TABLE_NAME AS `Table`,
-> ((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024 / 1024) AS `Size (GB)`
-> FROM information_schema.TABLES
-> WHERE TABLE_SCHEMA = "###"
-> ORDER BY (DATA_LENGTH + INDEX_LENGTH) DESC limit 1;
+------------------+----------------+
| Table | Size (GB) |
+------------------+----------------+
| negotiable_quote | 2.894226074219 |
+------------------+----------------+
1 row in set (0.007 sec)
```

How can we practically free up space?

---

- Maybe a architecture refactoring should be implemented to permit to delete older negotiable quote?
- Does GDPR compliance require these kinds of features?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported information_schema.TABLES query and the negotiable_quote table named in the issue. Determine what retention or deletion behavior is appropriate and whether GDPR requirements apply. Done means the repository has a decided, documented architecture for safely reducing or managing this table's growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb
Domain
databases
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.