<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi again!<span><br>
<br>
<style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;}  blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important}  blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important}  blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important}  blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>Florian
Festi
<a class="moz-txt-link-rfc2396E" href="mailto:ffesti@redhat.com"><ffesti@redhat.com></a></b></i>
wrote on ‫جمعه ۲۸ اوت ۰۹،
۱۷:۱۳:۱۰‬:</span>
<blockquote
 style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;"
 cite="mid:4A97D0DE.6030707@redhat.com" type="cite">On 08/28/2009 12:27
PM, Hedayat Vatnakhah wrote: <br>
  <blockquote type="cite">Now, some ideas: <br>
3. AFAIK, currently yum's primary database file contains information
about packages, and all of the files in directories such as /usr/bin
and /usr/lib, so that it can resolve package and file level
dependencies. Isn't it possible to move file level information outside
primary db (e.g. to primary_file_deps.db) and translate internal
dependencies from file level dependencies to package level dependencies
when creating repositories? (So that provides and requires tables in
primary db only contain package references rather than file
references?).It might be even possible to do it for dependencies
outside repository; for example when creating updates repository, you
can introduce fedora repository to createrepo, so it can translate all
of the file level dependencies of updates packages also. <br>
  </blockquote>
  <br>
Bad idea as you never know all repositories existing. Bad idea because
you don't want to recreate all repos when one of them changes. Bad idea
because changing the data of the packages in the repo likely to lead to
other problems. <br>
</blockquote>
You don't need to know about all existing repositories, since you can
still resolve file level dependencies. In such cases you'll be forced
to download the other file I mentioned (primary_file_deps.db). <br>
I don't see why you'll need to recreate all repos when one of them
changes! Sorry :( And its impossible to state anything about the last
item.<br>
<br>
<blockquote
 style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;"
 cite="mid:4A97D0DE.6030707@redhat.com" type="cite"><br>
There have actually been efforts long ago to improve the set of files
shipped with the primarydb to lower the need of downloading the
filelist while still decrease the number of file shipped in the
primarydb. AFAIK they got rejected by yum upstream at that time because
the also needed cross repo closures (Although this was much less
problematic as what you have suggested here). <br>
  <br>
  <blockquote type="cite">4. Even if the above solution is possible and
can reduce the size of primary db, it won't solve the main problem: for
large repositories, you'll need to download large database files.
You'll need to download extra database files on some use cases anyway.
So, it can be said that currently yum doesn't scale well. <br>
  </blockquote>
True. <br>
  <blockquote type="cite">What do you think about it: we can implement
parts of yum at the server side (e.g. a web service), and do queries
online. The client can submit queries to online repositories, aggregate
the results (+using local repositories by itself) and do appropriate
actions. It can also store received data to be used when offline or
while they are valid. It'll be completely backward compatible with the
current clients: those who use the old method can download repositories
themselves, like what they do now. <br>
It is possible to think about further details and design it completely,
but I want to know about your opinions about the whole idea. <br>
  </blockquote>
Web services have the problem that they don't mix well with our mirrors
infrastructure of simple and stupid http/ftp/rsync servers largely
provided by volunteers. It is also difficult to GPG sign external web
services. Because of this the whole traffic of such web services would
most likely need to run over Fedora infrastructure. <br>
</blockquote>
IMHO, even a single php/python script can provide such a XML RPC
service (web service was just an example). Mirrors could get this file
just like the other files when syncing. But well, it'll be http only.
The GPG sign issue could be problematic, but would you really need to
sign the traffic?! <br>
<br>
<blockquote
 style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;"
 cite="mid:4A97D0DE.6030707@redhat.com" type="cite"><br>
When we think of a Fedora that has grown another order of magnitude
(may be 2015) it will become hard to argue against a more centralized
solution. Right now we are not at the point where the pain of the local
repo db does out weight the complexity of a web service architecture
IMHO. <br>
</blockquote>
No, I don't want to invite to a centralized solution. <br>
<br>
<br>
<blockquote
 style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;"
 cite="mid:4A97D0DE.6030707@redhat.com" type="cite">But there is
another way to drastically reduce the amount of data that has to be
transferred: Delta meta data <br>
  <br>
The repo data bases could be split up into deltas in a similar way as
done with the delta rpms aka presto. As a result the meta data of each
package would be downloaded (more or less) exactly once. While this
idea is arround for a while an implementation is still missing... <br>
</blockquote>
Yes, I know. In fact, at first I decided to start working on that. But
you'll still need to download it once (while it's possible to put the
Fedora repository's metadata into Fedora DVD!). I though that if the
proposed solution works, it would be better than delta metadata files. <br>
Even if the whole client/server idea is considered bad, there might be
some other ways of organizing the repository metadata so that yum would
still download the data it needs rather than all data. But currently
I'm interested to here about this Idea...<br>
<br>
Thanks,<br>
Hedayat<br>
<br>
<blockquote
 style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;"
 cite="mid:4A97D0DE.6030707@redhat.com" type="cite"><br>
Florian <br>
  <br>
</blockquote>
</body>
</html>