-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIKE Update UI to account for a more nuance understanding of unpublished #1593
Comments
While working on this task, I came across several questions regarding the behavior and use of badges.
|
I've done an initial peer review on the PRs only looking at code changes, I haven't tested locally. I've also bumped the size on this card from medium to large Did you chat with anyone regarding #1593 (comment)? Or do we still need to have a discussion about these questions? There's a couple of large AC's that need to be looked at too
Can you provide some benchmarks for the performance difference of including this. Using response times in browser developer tools and include the average of 3 runs. Test should cover all of the components listed in the ACs. As well as performance numbers, could you please also include the PHP files used to perform the benchmark
You'll need to confirm this as well. If it doesn't work then possibly this is OK since versioned snapshots includes some functionality that does the same thing as this PR. Versioned snapshot is here. Recommend you do this indenpendently of your performance testing because there's going to be a bunch of things to setup. |
Performance tests: DB: MySQL 5.7 Relations: Page (1)
Relations: Page (1)
Steps to reproduce tests:
$before = microtime(true);
// main code here ...
$after = microtime(true);
echo ($after-$before) . " sec";
|
That performance looks really bad - we might want to drop this. At most if we do implement it, it's got to be opt-in with that sort of performance loss. |
This PRs works relatively quickly with multiple relationships when the main parent is another DateObject (not Page). On average 0.5 - 0.7 sec to load record. |
Good investigation Yeah seems like we should not merge this just now given potential performance regressions on every page edit load just to make more accurate save/publish buttons. I always amazed to hear just how bulky of the larger and older websites get, so 1250 records probably isn't outside the realms of possibilities I'm thinking we should retroactively call this one a SPIKE and I'll move this card back to the backlog and discuss in a couple of weeks during a refinement session what we want to do with this. |
That sounds like a good idea. |
I've switched this to the 5.3 milestone. Two random thoughts:
|
A wise person has just pointed out to me that we do have an abstraction for recursive database queries now (see CTE) which could be used to improve the performance somewhat. |
As a content author, I want to see the state of a DataObject and all its relations at a glance so I can know if I need to publish them.
Acceptance criteria
Excluded
Parent EPIC
PRs
The text was updated successfully, but these errors were encountered: