<div dir="ltr">Dear colleagues,<div><br></div><div>I am currently working on the issue <a href="https://pulp.plan.io/issues/6121">https://pulp.plan.io/issues/6121</a>. It was reported that syncs of very large repositories take a huge amount of time compared to Pulp 2.</div><div><br></div><div>I profiled the code and realized that that we are repeatedly fetching data from the database in a loop and manually excluding units which should not be added to a repository mirrored by Pulp. </div><div><br></div><div>Today, I submitted a PR (<a href="https://github.com/pulp/pulpcore/pull/565">https://github.com/pulp/pulpcore/pull/565</a>) that may resolve this issue. Instead of the aforesaid loop, there is now used a single database call which does the same thing, I suppose. Please, focus on the last note <a href="https://pulp.plan.io/issues/6121#note-11">https://pulp.plan.io/issues/6121#note-11</a> to better understand my findings. Also, do not hesitate to review the submitted PR.</div><div><div><br></div><div>Thank you!</div></div></div>