From Fedora Project Wiki
No edit summary
(Change announced on Jul-12)
Line 23: Line 23:
== Summary ==
== Summary ==
Replacing obsoleted YUM/DNF databases (yumdb, historydb, groups.json) with new unified sqlite database adapted to the current needs of DNF.
Replacing obsoleted YUM/DNF databases (yumdb, historydb, groups.json) with new unified sqlite database adapted to the current needs of DNF.
   
   
== Owner ==
== Owner ==
Line 64: Line 63:
   
   
<!-- What is the benefit to the platform?  If this is a major capability update, what has changed?  If this is a new functionality, what capabilities does it bring? Why will Fedora become a better distribution or project because of this proposal?-->
<!-- What is the benefit to the platform?  If this is a major capability update, what has changed?  If this is a new functionality, what capabilities does it bring? Why will Fedora become a better distribution or project because of this proposal?-->
== Scope ==
== Scope ==
* Proposal owners: Port DNF to SWDB (patches has been already sent), [[GSOC_2017/Student_Application_edynox|Port PackageKit to SWDB]]
* Proposal owners: Port DNF to SWDB (patches has been already sent), [[GSOC_2017/Student_Application_edynox|Port PackageKit to SWDB]]
Line 137: Line 135:
-->
-->
   
   
[[Category:ChangeReadyForWrangler]]
[[Category:ChangeAnnounced]]
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->

Revision as of 12:19, 12 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-12
  • 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 (Modularity support in DNF will use SWDB).

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: Nothing is required
  • 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