Skip to content

[FEATURE] Added preload nodes #273

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

Merged
merged 12 commits into from
Sep 30, 2014
Merged

[FEATURE] Added preload nodes #273

merged 12 commits into from
Sep 30, 2014

Conversation

wachterjohannes
Copy link
Member

@chirimoya it has (nearly) no benefit for speed, but i think it is less load for jackrabbit!

This PR allows structure tags to be defined in the structure template
file. These tags can subsequently be used by other bundles.

It also removes the unique priority constraint on tags and adds an
"addTag" method to the Property class.
$uuids[] = $row->getValue('page.jcr:uuid');
}

$this->sessionManager->getSession()->getNodesByIdentifier($uuids);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a comment to indicate why we do this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually reduce the number of queries? It should do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it reduces the number of queries ... but it doesnt look like a speed optimization (at least on my computer) but the advantage is that jackrabbit has not 100 queries (= for 100 pages!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment added

@wachterjohannes
Copy link
Member Author

@dantleech @chirimoya getNodesByPath is much faster then getNodesByIdentifier. But there is a batch-size and current getNodesByPath loads only 50 nodes at once ... (jackalope/jackalope#239) this brings a big speed optimization

Daniel Rotter added 4 commits September 29, 2014 11:44
$this->languageNamespace
);
$url = $row->getValue('page.' . $property->getName());
$url = $this->getPropertyData($node, $property, $webspaceKey, $locale);
}
}

try {
$routePath = $row->getPath('route');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $node->getResourceLocator instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not possible because then i have to load the whole structure!

Daniel Rotter added 4 commits September 30, 2014 10:44
@danrot danrot merged commit b1b8e19 into develop Sep 30, 2014
@danrot danrot removed the review label Sep 30, 2014
@danrot danrot deleted the feature/preload-nodes branch September 30, 2014 08:54
chirimoya added a commit that referenced this pull request Oct 31, 2014
alexander-schranz pushed a commit to alexander-schranz/sulu that referenced this pull request Nov 14, 2024
alexander-schranz pushed a commit to alexander-schranz/sulu that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants