title: Magento 2 category saving error related to category product assignment
body: <h1><strong>this is what happening with the store i´m building: I have 280k products to import, i´m doing it in with 7 csv files every file contains 40k of data except the last one.</strong></h1>
  <h2>My problem is the following:</h2>
  <p>I import the first 40k of data with all the attributes i need, then when the import process is complete i can´t save the categories where the products are assigned.</p>
  <p>A thing i want to do is just to create one url for my product bcause when i upload a product for both categories,</p>
  <p>i.e: <em><strong>category-parent,category-parent/category-child</strong></em> the system creates two url for both categories like this: <strong>category-parent/my-product</strong> and <strong>category-parent/category-child/my-product</strong>, what i want is this: <strong>category-parent/category-child/my-product</strong></p>
  <p>Even if i choose to enable canonical url for categories, it keeps creating three urls:</p>
  <p>.One for <strong>category-parent</strong></p>
  <p>.Another for <strong>category-parent/category-child</strong></p>
  <p><strong>for 40k products the url-rewrites reaches to 119.</strong></p>
  <p>right now i´m deleting everything from the store to re import the products and see what´s happening with this issue.</p>
  <p>All the help i can get will be much appreciated, thanks for your time.</p>