Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
I suggest to remove providers, packages, titles, resources tables. Because we already have record_id and record_type columns in tags table.
One addition is to include credentials_id column to tags
Code Refactoring:
We use a lot of joins to retrieve records by tags. But now we can retrieve records from one table.
...
Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
We use a lot of joins to retrieve records by tags. But now we can retrieve records from one table.
- Write databaseChangeLog script to edit database structure
- Delete repositories related removed tables PackageRepository, ResourceRepository, TitleRepository, ProviderRepository
- Implement logic in TagsRepository to retrieve records from tags table by TagFilter
- Unit tests refactoring
Changes advantages:
- Remove unused data, simplify database structure
- Get rid of code duplications, so searching by tag logic will be in the one class. Instead of 4 same classes
- Will stop using SQL Joiners to improve module response time when searching by tags.
...