Changeset [4f7fcf0145f57e936bc1f6383bdd85004d934bef] by Gaspard Bucher

October 13th, 2009 @ 11:25 AM

Now that we have a cached version_id, we can preload versions (same as rails' include). Listing version titles for 1466 nodes:
0.12-stable: 13064 ms
vhash without preload: 2055 ms
vhash with preload: 580 ms

We are now 22 times faster !
http://github.com/zena/zena/commit/4f7fcf0145f57e936bc1f6383bdd8500...

Committed by Gaspard Bucher

  • M lib/zena/acts/multiversion.rb
  • M lib/zena/acts/secure.rb
  • M lib/zena/use/node_query_finders.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Anyone knows how to use formatting here ?

Git repository: http://github.com/zena

Official website: http://zenadmin.org

Shared Ticket Bins