0

Here's the problem

A query is trigger every time when a node property is called in the view

How it looks in the view

But even when a query was done to retrieve all the nodes it still sends one query for each property. Is there something that I overlooked in retrieving the nodes or there is a design flaw in the way I programmed the app.

Mohd Vara
  • 19
  • 5

1 Answers1

1

What version of the neo4j gem are you using? The latest versions should address this.

The new gems don't introduce many breaking changes (see the CHANGELOG), but if, for some reason, you can't upgrade you can set the following configuration in config/application.rb:

config.neo4j._active_record_destroyed_behavior = true
Brian Underwood
  • 10,746
  • 1
  • 22
  • 34
  • Seem I have been using previous version of the gem. After updating the Gemfile to specify the latest release version it's running smoothly. Thank you. – Mohd Vara Feb 01 '16 at 06:57