Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Antonio Cangiano
RE: sometime not display model data [ reply ]  
2007-10-16 03:18
Hi Akira,

it's great to hear that it worked.

Cheers,
Antonio

By: Akira Shimosako
RE: sometime not display model data [ reply ]  
2007-10-15 15:33
Hi, Antonoio and Tamer.

Thank you for your reply.

When I changed APPLHEAPSZ 256 to 1024 , it worked very fine!
(I use db2 v9 but I created db with "AUTOCONFIGURE APPLY NONE" option.)

Thank you very much.

By: Antonio Cangiano
RE: sometime not display model data [ reply ]  
2007-10-14 21:22
Correction:

$ db2 update db cfg for db_name using APPLHEAPSZ 1024
$ db2stop
$ db2start

By: Antonio Cangiano
RE: sometime not display model data [ reply ]  
2007-10-14 20:48
> It might worth to check your DB2 Driver settings for APPLHEAPSZ (application heap size). It should be >= 1024 for Rails applications.

$ db2 update db cfg using APPLHEAPSZ 1024
$ db2stop
$ db2start

Cheers,
Antonio

By: Tamer Salama
RE: sometime not display model data [ reply ]  
2007-10-14 17:57
It might worth to check your DB2 Driver settings for APPLHEAPSZ (application heap size). It should be >= 1024 for Rails applications.

By: Akira Shimosako
RE: sometime not display model data [ reply ]  
2007-10-14 08:58
I found the defference between when it works fine and not fine.

In the WEBrick's log:
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1336 <- NOT fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine

When the 2nd number was changed , the model's properties are not displayed.

By: Akira Shimosako
sometime not display model data [ reply ]  
2007-10-13 05:30
Hello.

I have a problem about displaying model's data with scaffold's view.

my env: Windows XP SP2, DB2 9 Express-C FP2 ,rails 1.8.4 , ruby 1.8.6, ibm_db 0.8.0

procedure:
1) rails test1
2) edit database.yml to connect to db2
3) ruby script\generate model user
4) edit migration file
5) rake db:migration
6) ruby script\generate scaffold user
7) brows http://localhost:3000/users/
8) add new user
9) browser displays the list of users.

In many cases it works fine.
But when I repeat browser reload ,
rails sometimes failed to display model's propety.

When I tried with sqlite3 , there was no problem.

Is there anyone have same problem?