get nodes data optimization

supersedes https://github.com/jackalope/jackalope-doctrine-dbal/pull/210