Re: [Pulp-dev] bulk_create for Artifact, Content, ContentArtifact, and RemoteArtifact?

2018-06-21 Thread Brian Bouterse
I just tried an implementation of DeclarativeVersion that uses bulk_create for all content units, content artifacts, and remote artifacts. The content units are incompatible with bulk_save(). When trying to save a batch of content units with bulk_save it raises: ValueError: Can't bulk create a

Re: [Pulp-dev] bulk_create for Artifact, Content, ContentArtifact, and RemoteArtifact?

2018-06-21 Thread Austin Macdonald
On Thu, Jun 21, 2018 at 4:19 PM, Brian Bouterse wrote: > I'm only considering these changes for the plugin writer API to help > resolve the performance issues. > Cool. +1 ___ Pulp-dev mailing list Pulp-dev@redhat.com

Re: [Pulp-dev] bulk_create for Artifact, Content, ContentArtifact, and RemoteArtifact?

2018-06-21 Thread Brian Bouterse
I'm only considering these changes for the plugin writer API to help resolve the performance issues. On Thu, Jun 21, 2018 at 4:11 PM, Austin Macdonald wrote: > For models, bulk_create seems good to me. Endpoints to kick off tasks like > sync that use bulk_create seems fine. > > Are you also

Re: [Pulp-dev] bulk_create for Artifact, Content, ContentArtifact, and RemoteArtifact?

2018-06-21 Thread David Davis
+1 David On Thu, Jun 21, 2018 at 3:55 PM Brian Bouterse wrote: > I've run cprofile on some of the sync code for Pulp3 and I've noticed that > we may have some problems with bulk_create on some of the object types. > > Here is a small analysis I did: https://pulp.plan.io/issues/3770#note-2 > >

[Pulp-dev] bulk_create for Artifact, Content, ContentArtifact, and RemoteArtifact?

2018-06-21 Thread Brian Bouterse
I've run cprofile on some of the sync code for Pulp3 and I've noticed that we may have some problems with bulk_create on some of the object types. Here is a small analysis I did: https://pulp.plan.io/issues/3770#note-2 As an aside, we don't have a bulk add option for

[Pulp-dev] 2.17.0 Release request

2018-06-21 Thread Ina Panova
A 2.17.0 is being planned with some features and recent fixes. Here [0] is a release schedule page which outlines some tentative dates, starting with a dev freeze on July 30 2018. If this schedule needs to be adjusted, please reply with alternate dates. [0]

Re: [Pulp-dev] 'id' versus 'pulp_id' on Content

2018-06-21 Thread Jeremy Audet
Base URLs should never change. That's an expectation that all web application clients everywhere should be able to rely on. "Cool URIs don't change." If anything, storing IDs is the worse practice, because that implies that the client is going to use pre-existing knowledge to locally build URLs,

Re: [Pulp-dev] 'id' versus 'pulp_id' on Content

2018-06-21 Thread Daniel Alley
Another way of thinking of it would be: "don't store store this unless you absolutely know that the base of the URL will never, ever change". Storing IDs is fine, storing hrefs may potentially not be, because it can change out from underneath you. I think it's actually a similar concept. On

Re: [Pulp-dev] 'id' versus 'pulp_id' on Content

2018-06-21 Thread Jeremy Audet
> I'm -1 on going the underscore idea, partly because of the aforementioned > confusion issue, but also partly because but I've noticed that in our API, > the "underscore" basically has a semantic meeting of "href, [which is] > generated on the fly, not stored in the db". > > Specifically: > >