<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">just curious, where does the rpm 'id' come from and how is 
it used differently than the NEVREA composite natural key.</blockquote><div class="m_-7445999418040109667gmail-yj6qo m_-7445999418040109667gmail-ajU"><div id="m_-7445999418040109667gmail-:1t0" class="m_-7445999418040109667gmail-ajR"><img class="m_-7445999418040109667gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div>It's a part of Erratum, not the actual RPM content, so it's unrelated to NVREA.  An example of an errata "id" would be <span class="gmail-blob-code-inner"><span class="gmail-pl-s">"RHEA-2013:1777</span></span>".<br></div><div><br></div><div>I agree with your point about '_id' and 'id' being confusing.  I don't think having 'pulp_id' would be so bad, but if there's still strong objection to that idea, then I am fine with just moving forwards as-is and making sure that we clearly document what field names plugin writers cannot use.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 12, 2018 at 3:44 PM, Jeff Ortel <span dir="ltr"><<a href="mailto:jortel@redhat.com" target="_blank">jortel@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/08/2018 02:57 PM, Brian Bouterse wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
@jortel: We're blocked on your -1 vote expressed for 3704. We have practical plugin writer issues with the current state. Can you elaborate on why we shouldn't go forward with <a href="https://pulp.plan.io/issues/3704" rel="noreferrer" target="_blank">https://pulp.plan.io/issues/37<wbr>04</a><br>
</blockquote>
<br></span>
The 'ID' column is reserved for the primary key and is inappropriate for natural keys.  This is well establish convention and best practice.  Plugin writers specify natural keys.  Also, by introducing '_' prefix (or any prefix) means a table could have both 'ID' and '_ID' columns which is especially confusing since the 'ID' column would not be the primary key.<br>
<br>
How does naming the natural key for an rpm as 'rpm_id' cause a significant problem for plugin writers?<br>
<br>
@bmbouters: just curious, where does the rpm 'id' come from and how is it used differently than the NEVREA composite natural key.<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/pulp-dev</a><br>
</div></div></blockquote></div><br></div>