Skip to content

Don't rely on .sqlite metadata #97

Open
@dralley

Description

Currently mdapi is the only consumer of .sqlite metadata. Previously it was used by "yum" on EL7, but yum is perfectly capable of working without it anyway. DNF does not use it. The "repoview" tool used it, but it has been defunct for years, and AFAIK hasn't been packaged in Fedora since Fedora 27.

This blocks the discontinuation of .sqlite metadata https://pagure.io/releng/issue/10745.

The possible approaches:

  • Process the XML directly. This might not be as performant or light on memory as querying the sqlite databases so it may not be a good option.
  • Create the sqlite metadata from the XML metadata using sqliterepo_c if it is not present
  • Always create the sqlite metadata from the XML metadata using sqliterepo_c, this would make the code simpler over the long term as you would expect repos that provide sqlite metadata to gradually become a minority
  • Process the XML ourselves and create a single combined sqlite database from it manually, this might simplify some things (only one file to track) and make new APIs possible but would perhaps be the most work. The only reason not to do this is that sqliterepo_c already exists

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions