From 48d7ff6e34ff786077ccd725bffa0d570c19c9d8 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 24 Nov 2008 04:02:58 +0000 Subject: [PATCH] speed up scratch and settings, since they don't need to be ordered --- lib/WebGUI/Session/Scratch.pm | 2 +- lib/WebGUI/Session/Setting.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Session/Scratch.pm b/lib/WebGUI/Session/Scratch.pm index 2303cb8cc..6b2dbfc4f 100644 --- a/lib/WebGUI/Session/Scratch.pm +++ b/lib/WebGUI/Session/Scratch.pm @@ -176,7 +176,7 @@ The current session. sub new { my $class = shift; my $session = shift; - my $data = $session->db->buildHashRef("select name,value from userSessionScratch where sessionId=?",[$session->getId]); + my $data = $session->db->buildHashRef("select name,value from userSessionScratch where sessionId=?",[$session->getId], {noOrder => 1}); bless {_session=>$session, _data=>$data}, $class; } diff --git a/lib/WebGUI/Session/Setting.pm b/lib/WebGUI/Session/Setting.pm index 0feda30e4..44eda10b7 100644 --- a/lib/WebGUI/Session/Setting.pm +++ b/lib/WebGUI/Session/Setting.pm @@ -115,7 +115,7 @@ A reference to the current WebGUI::Session. sub new { my $class = shift; my $session = shift; - my $settings = $session->db->buildHashRef("select * from settings"); + my $settings = $session->db->buildHashRef("select * from settings", [], {noOrder => 1}); bless {_settings=>$settings, _session=>$session}, $class; }