From Fedora Project Wiki
No edit summary
No edit summary
Line 57: Line 57:
== Detailed Description ==
== Detailed Description ==
   
   
<!-- Expand on the summary, if appropriate.  A couple sentences suffices to explain the goal, but the more details you can provide the better.
<!-- Expand on the summary, if appropriate.  A couple sentences suffices to explain the goal, but the more details you can provide the better. -->
Unified software database for DNF is replacing outdated and obsolete databases behind the DNF. It comes with shared library for accessing the database used by DNF and PackageKit. Library providing database access should be part of libdnf.
Unified software database for DNF is replacing outdated and obsolete databases behind the DNF. It comes with shared library for accessing the database used by DNF and PackageKit. Library providing database access should be part of libdnf.
   
   
Line 74: Line 74:
* Release engineering: [https://pagure.io/releng/issue/6886 #6886] (a check of an impact with Release Engineering is needed) <!-- REQUIRED FOR SYSTEM WIDE AS WELL AS FOR SELF CONTAINED CHANGES -->
* Release engineering: [https://pagure.io/releng/issue/6886 #6886] (a check of an impact with Release Engineering is needed) <!-- REQUIRED FOR SYSTEM WIDE AS WELL AS FOR SELF CONTAINED CHANGES -->
<!-- Does this feature require coordination with release engineering (e.g. changes to installer image generation or update package delivery)?  Is a mass rebuild required?  include a link to the releng issue.
<!-- Does this feature require coordination with release engineering (e.g. changes to installer image generation or update package delivery)?  Is a mass rebuild required?  include a link to the releng issue.
The issue is required to be filed prior to feature submission, to ensure that someone is on board to do any process development work and testing, and that all changes make it into the pipeline; a bullet point in a change is not sufficient communication
The issue is required to be filed prior to feature submission, to ensure that someone is on board to do any process development work and testing, and that all changes make it into the pipeline; a bullet point in a change is not sufficient communication -->
   
   
** [[Fedora_Program_Management/ReleaseBlocking/Fedora{{FedoraVersionNumber|next}}|List of deliverables]]: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
** [[Fedora_Program_Management/ReleaseBlocking/Fedora{{FedoraVersionNumber|next}}|List of deliverables]]: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
Line 86: Line 86:
   
   
== Upgrade/compatibility impact ==
== Upgrade/compatibility impact ==
<!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported?
<!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported? -->
   
   
Data from obsolete databases are migrated to SWDB with first use of ported DNF. There is no backward migration available.
Data from obsolete databases are migrated to SWDB with first use of ported DNF. There is no backward migration available.
Line 103: Line 103:
working like it's supposed to?
working like it's supposed to?
3. What are the expected results of those actions?
3. What are the expected results of those actions?
-->
Use DNF in normal operation (especially history commands).
Use DNF in normal operation (especially history commands).
   
   

Revision as of 16:02, 5 July 2017


Unified database for DNF

Summary

Replacing obsoleted YUM/DNF databases (yumdb, historydb, groups.json) with new unified sqlite database adapted to the current needs of DNF.


Owner

Current status

  • Targeted release: Fedora 27
  • Last updated: 2017-07-05
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

Unified software database for DNF is replacing outdated and obsolete databases behind the DNF. It comes with shared library for accessing the database used by DNF and PackageKit. Library providing database access should be part of libdnf.

Benefit to Fedora

Using single unified database with shared interface enhances data integrity, safety and performance of package managers in Fedora. Database is easily expandable for new features(Fedora modularity support).


Scope

  • Other developers: PackageKit developers should review proposed changes in libdnf for logging PackageKit transactions into SWDB instead of yumdb. In addition PackageKit developers should consider using SWDB for reading transaction data instead of using its own backend.
  • Release engineering: #6886 (a check of an impact with Release Engineering is needed)
  • Policies and guidelines: N/A (not a System Wide Change)
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

Data from obsolete databases are migrated to SWDB with first use of ported DNF. There is no backward migration available.

How To Test

Use DNF in normal operation (especially history commands).

User Experience

Increase of history related DNF commands performance.

Dependencies

Changing DNF databases in the background should not affect other packages.

Contingency Plan

  • Contingency mechanism: Write tool to convert to old db format and revert change
  • Contingency deadline: Beta Freeze
  • Blocks release? Yes (not sure)
  • Blocks product? -

Documentation

Not written yet.

Release Notes