Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3155 (closed task: fixed)

Opened 5 years ago

Last modified 4 years ago

serious slow down for session creation using ActiveRecordStore

Reported by: skaes Assigned to: David
Priority: normal Milestone: 1.0
Component: ActionPack Version: 0.14.3
Severity: normal Keywords: performance activerecordstore
Cc: bitsweat

Description

creation of new sessions using ActiveRecordStore as session storage has suffered a severe slow down compared to release 0.14.1.

perf data file 1: perf_run1.cached
  requests=1000, options=-bm=cached -fast_routes -fast_readers -lib=stable

perf data file 2: perf_run2.cached
  requests=1000, options=-bm=cached -fast_routes -fast_readers -lib=r141

page   c1 real   c2 real  c1 r/s  c2 r/s  c1 ms/r  c2 ms/r  c1/c2
 1:    6.66167   4.10433   150.1   243.6     6.66     4.10   1.62
 2:    6.63500   4.35933   150.7   229.4     6.64     4.36   1.52
 3:    5.00533   4.80200   199.8   208.2     5.01     4.80   1.04
 4:    4.98933   4.75000   200.4   210.5     4.99     4.75   1.05

urls:
 1: /empty/index
 2: /welcome/index
 3: /rezept/index
 4: /rezept/myknzlpzl

I think someone should look at this more closely.

Change History

12/09/05 18:32:15 changed by bitsweat

  • cc set to bitsweat.
  • component changed from ActiveRecord to ActionPack.

We used to instantiate a new session and save it only if it was modified. This breaks components, so now we always save the session.

12/09/05 18:37:02 changed by bitsweat

  • type changed from defect to task.

01/19/06 07:32:14 changed by skaes

The newly added component patch (ticket #3527) obsoletes eager session saving.

07/08/06 01:41:56 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.