Ticket #829 (closed enhancement: fixed)

Opened 10 months ago

Last modified 7 months ago

update various actions to use caches instead of going directly to mulgara

Reported by: russ Assigned to: pradeep
Priority: high Milestone: 0.9.0
Component: ambra Version: 0.8.2.1
Keywords: Cc:
Blocking: Blocked By: 900 901

Description (Last modified by amit)

some actions hit mulgara even after they've been cached.

Dependency Graph

Change History

03/06/08 13:53:32 changed by russ

i tested on 0.8.2.1

i'm still seeing multiple mulgara queries on successive loads of getCommentary.action and getArticleRatings.action.

perhaps it's better than it was before - can you give me an idea what to test?

i'm bringing this up on branch (0.8.2.2) to see if it's working there - perhaps i didn't patch correctly.

here's how i patched 0.8.2.1:

  • update 0.8.2.1 branch to r4918
  • mvn clean install
  • copy files from 0.8.2.1/plos/webapp/target/classes/org/plos/ to /usr/local/topaz/plosone/webapps/ROOT/WEB-INF/classes/org/plos/ on dev server:
    • annotation/action/AbstractCommentaryAction.class
    • annotation/action/ListReplyAction.class
    • annotation/action/ListReplyAction$1.class
    • rating/action/GetArticleRatingsAction$1.class
    • rating/action/GetArticleRatingsAction.class

03/06/08 14:16:22 changed by russ

for getArticleRatings, on 0.8.2.1, i'm seeing the same 34 mulgara queries on each load:

2008-03-06 14:12:06,312 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingSummaryAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0000545 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,322 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/a3d7f8da-5261-43ec-9010-9ff24c01993d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,326 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/a3d7f8da-5261-43ec-9010-9ff24c01993d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,336 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingSummaryContent/29ce88d0-210b-4efd-9a2c-edcc1326f82d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,341 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingSummaryContent/29ce88d0-210b-4efd-9a2c-edcc1326f82d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,351 INFO  DatabaseSession> QUERY: SELECT $s $so0 FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingsAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#created $so0 local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0000545 $_from]) ORDER BY $so0 asc GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,362 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/aa29888e-af5e-43cb-bb49-0a54a28359dc $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,367 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/aa29888e-af5e-43cb-bb49-0a54a28359dc $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,378 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/e7552548-45bd-4847-8776-4defa5ed6c2b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,383 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/e7552548-45bd-4847-8776-4defa5ed6c2b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,394 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingContent/28b1bc8d-71c7-4b8c-b8e2-a94fcb202ec7 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,401 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingContent/28b1bc8d-71c7-4b8c-b8e2-a94fcb202ec7 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,413 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/account/cb2b3606-02ab-4dc9-88df-16c7aa6409ce $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:06,419 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/account/cb2b3606-02ab-4dc9-88df-16c7aa6409ce $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,338 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/authids/9d2ad23a-442b-4883-81b6-e23cc4df4ac7 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,340 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/authids/9d2ad23a-442b-4883-81b6-e23cc4df4ac7 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,350 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=preferences WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=preferences WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/preferences/56bf7d80-5473-4460-92d1-9eaf3f29da3f $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,352 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=preferences WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=preferences WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/preferences/56bf7d80-5473-4460-92d1-9eaf3f29da3f $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,362 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=preferences WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=preferences WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/preferences/5969db58-a700-41c6-9373-a71d4dfe4939 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,364 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=preferences WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=preferences WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/preferences/5969db58-a700-41c6-9373-a71d4dfe4939 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,374 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/profile/6794742a-c140-4a93-82d1-176f250df624 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,380 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/profile/6794742a-c140-4a93-82d1-176f250df624 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,391 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingContent/df1dff4f-f8cd-4dfe-b127-470b917a45f8 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,393 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingContent/df1dff4f-f8cd-4dfe-b127-470b917a45f8 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,405 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/account/d8bf90a0-45c9-459f-95ff-12554b8dda5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:07,409 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/account/d8bf90a0-45c9-459f-95ff-12554b8dda5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,340 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/authids/90d71967-ac8f-40dd-863b-aa739856824c $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,342 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/authids/90d71967-ac8f-40dd-863b-aa739856824c $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,355 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/roles/ab7f0011-0934-419c-b3f0-79665c92b0f0 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,357 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/roles/ab7f0011-0934-419c-b3f0-79665c92b0f0 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,368 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/profile/ca55dc57-0979-4258-891a-8ebbbb4b3976 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:12:08,373 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/profile/ca55dc57-0979-4258-891a-8ebbbb4b3976 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]

03/06/08 14:17:57 changed by russ

for getCommentary.action, i see the same 10 mulgara queries on each load:

2008-03-06 14:16:48,883 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/647ecc11-d069-401f-8073-5df0653ab8c7 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/647ecc11-d069-401f-8073-5df0653ab8c7 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,085 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/591d4194-2b76-4723-ac53-b2ccb1d4f593 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/591d4194-2b76-4723-ac53-b2ccb1d4f593 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,168 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/29a40d47-1397-40d0-b1dc-a69d30f577a9 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/29a40d47-1397-40d0-b1dc-a69d30f577a9 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,246 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/d0d8401f-f5f5-46be-9358-ad100e1fc41f $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/d0d8401f-f5f5-46be-9358-ad100e1fc41f $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,262 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/reply/4ca69be2-30a4-4af6-b1c2-cd79fb80a459 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,267 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/reply/4ca69be2-30a4-4af6-b1c2-cd79fb80a459 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,340 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/4f77bb62-96f9-4473-bd9f-8a2dbb3516e3 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/4f77bb62-96f9-4473-bd9f-8a2dbb3516e3 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,411 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/6d724702-71c4-4865-a839-ba24995aa410 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/6d724702-71c4-4865-a839-ba24995aa410 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,481 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/5ceed20d-2bde-47dc-a7a4-ce5d76ba0640 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/5ceed20d-2bde-47dc-a7a4-ce5d76ba0640 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:16:49,552 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2001/03/thread#Reply local:///topazproject#filter:model=ri] [$s http://www.w3.org/2001/03/thread#root info:doi/10.1371/annotation/0c838765-834b-44d6-972d-52d4e0e42ef7 $_from] walk[[$s http://www.w3.org/2001/03/thread#inReplyTo info:doi/10.1371/annotation/0c838765-834b-44d6-972d-52d4e0e42ef7 $_from] and [$s http://www.w3.org/2001/03/thread#inReplyTo $st1 $_from]]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]

03/06/08 14:18:43 changed by russ

for fetchArticle.action is see the same 6 mulgara queries on each load:

2008-03-06 14:18:14,932 INFO  DatabaseSession> QUERY: SELECT $s $so0 FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/TrackbackAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#created $so0 local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0000545 $_from]) ORDER BY $so0 desc GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:18:15,118 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingSummaryAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0000545 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:18:15,132 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/a3d7f8da-5261-43ec-9010-9ff24c01993d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:18:15,136 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/a3d7f8da-5261-43ec-9010-9ff24c01993d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor24 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:18:15,150 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingSummaryContent/29ce88d0-210b-4efd-9a2c-edcc1326f82d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
2008-03-06 14:18:15,154 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingSummaryContent/29ce88d0-210b-4efd-9a2c-edcc1326f82d $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]

03/06/08 14:19:27 changed by russ

looks like we are not caching the actual comments, ratings, trackback counts, and rating summaries...

03/06/08 14:28:46 changed by russ

  • owner changed from jsuttor to jkirton.

reassigning to jon, just so everyone has a ticket in critical ;)

03/06/08 14:35:14 changed by rich

  • owner changed from jkirton to jsuttor.

03/06/08 14:37:37 changed by amit

Jeff, please keep this open after you have a fix and assign it to me as this is a good use case for a certain type of modeling I think Topaz might consider.

03/19/08 17:23:46 changed by jsuttor

  • owner changed from jsuttor to russ.
  • description changed.

updated Description w/more comprehensive commits. Assigning to Russ for confirmation. (note comment:ticket:829:8 to assign back to Amit.) Thanks.

03/21/08 16:31:41 changed by russ

  • owner changed from russ to jsuttor.

i'm still seeing queries on multiple loads of:

  • getCommentary
    2008-03-21 16:27:43,365 INFO  DatabaseSession> QUERY: SELECT $s $so0 FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/TrackbackAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#created $so0 local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) ORDER BY $so0 desc GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,425 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingSummaryAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,443 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,448 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,462 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,467 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    
  • getArticleRatings (quite a few!)
    2008-03-21 16:30:54,636 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingSummaryAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,646 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,651 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,661 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,666 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,691 INFO  DatabaseSession> QUERY: SELECT $s $so0 FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingsAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#created $so0 local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) ORDER BY $so0 asc GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,701 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/28e8edde-25ae-41ce-9385-3cd623e3206e $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,706 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/28e8edde-25ae-41ce-9385-3cd623e3206e $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,720 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingContent/758b5d6c-a4de-4a6b-8d98-b96d008fa93f $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,724 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingContent/758b5d6c-a4de-4a6b-8d98-b96d008fa93f $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,735 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/account/24f3b397-6020-40a0-b935-ffb59c93041e $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,739 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM ((local:///topazproject#filter:model=users union local:///topazproject#filter:model=profiles) union local:///topazproject#filter:model=preferences) WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/account/24f3b397-6020-40a0-b935-ffb59c93041e $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,776 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/authids/d10ffa96-5b2c-477b-b48d-f898850ed451 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,778 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=users WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=users WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/authids/d10ffa96-5b2c-477b-b48d-f898850ed451 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor22 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,789 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/profile/1d4156ac-1be8-4f4e-9eec-174a837b0570 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:30:54,795 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=profiles WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=profiles WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/profile/1d4156ac-1be8-4f4e-9eec-174a837b0570 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    
  • fetchArticle
    2008-03-21 16:27:43,365 INFO  DatabaseSession> QUERY: SELECT $s $so0 FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/TrackbackAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#created $so0 local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) ORDER BY $so0 desc GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,425 INFO  DatabaseSession> QUERY: SELECT $s FROM local:///topazproject#filter:model=ri WHERE ( and [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdf.topazproject.org/RDF/RatingSummaryAnnotation local:///topazproject#filter:model=ri] [$s http://www.w3.org/2000/10/annotation-ns#annotates info:doi/10.1371/journal.pone.0001070 $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,443 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,448 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/annotation/5af9ccd4-a083-469d-946e-18d5980f5d5b $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor25 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,462 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$o http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$s <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    2008-03-21 16:27:43,467 INFO  DatabaseSession> QUERY: SELECT $s $p $o subquery(SELECT $t FROM local:///topazproject#filter:model=ri WHERE [$s http://www.w3.org/1999/02/22-rdf-syntax-ns#type $t $_from] GIVEN 0 columns: (1 rows)) FROM local:///topazproject#filter:model=ri WHERE ( and [$s $p $o $_from] [$o <mulgara:is> info:doi/10.1371/ratingSummaryContent/0076cba2-04bd-41db-b389-6045a34abdfe $_from]) GIVEN 0 columns: (1 rows) [http-9091-Processor23 org.mulgara.resolver.DatabaseSession]
    

03/28/08 11:24:13 changed by rich

  • milestone changed from pubApp_0.8.2.2 to 0.9.0.

Let's check queries again with all the updates to 0.9

04/04/08 20:48:52 changed by amit

  • owner deleted.
  • priority changed from critical to unassigned.

This, in some senses, might have dependency on 900 and 901. Downgrading it till I hear from Rich with regards how comfortable PLoS will be with the risks.

04/05/08 14:54:18 changed by amit

  • owner set to jsuttor.
  • priority changed from unassigned to critical.
  • blocking changed.
  • blockedby set to 900 901.

I have assigned 900 and 901 to Pradeep to finish up. I am guessing this be looked at after that or as part of that effort. Jeff, please co-ordinate with Pradeep on this.

04/11/08 06:48:09 changed by russ

just a note that after final testing on 0.8.2.2 we're not caching the following things:

individual actions. we should be able to cache these the same we we cache individual annotations in listThread.action:

  • ratings (getArticleRatings.action doesn't cache the individual ratings)
  • trackbacks (getTrackbacks.action doesn't cache the trackbacks)
  • replies to an annotation (listThread.action only caches the root annotation)

lists of annotations. we should be able to cache these the way we cache the list of annotations that annotate an article:

  • the list of replies to an annotation (listThread.action)

05/01/08 18:26:17 changed by pradeep

(In [5575]) Added an Interceptor concept for OTM Sessions. This is similar to the Interceptor support provided by Hibernate.

This is to help Ambra resolve a number of tickets related to caching. Please see #900,#901,#829,#845,#861 (and may be more)

As part of this update, please note that the Transaction API has the following additions: 'isActive', 'wasCommitted' and 'wasRolledBack'.

05/01/08 19:18:38 changed by pradeep

(In [5576]) Basic infrastructure support for transactional cache updates and cache invalidations and also support for a journal context aware second-level cache (similar to Hibernate).

Addresses #900,#901,#829,#845,#861.

CacheManager? provides a READ_COMMITTED isolation level. Only cache that is managed by this CacheManager? now is the journal context aware object-cache for OTM. No changes to existing caches or cache-invalidations yet.

05/07/08 11:09:18 changed by amit

  • owner deleted.
  • description changed.

Added getAverageRatingAction here also and removed assignment.

05/12/08 16:34:19 changed by amit

  • owner set to russ.

As first step, Russ will finish doing a analysis of the logs to figure out what operations are performed most commonly. Assigning to Russ.

05/12/08 16:43:39 changed by russ

  • status changed from new to assigned.

06/09/08 19:39:56 changed by amit

  • owner changed from russ to pradeep.
  • status changed from assigned to new.

06/13/08 11:03:39 changed by pradeep

  • status changed from new to assigned.

06/13/08 11:30:31 changed by pradeep

(In [5950]) Cache the average-ratings summary for an article so that mulgara is not hit every time. Note that the check to see if a user has rated an article is currently not cached. This check occurs for logged in users. Leaving that alone since caching that requires an entry per user per article - probably not worth it - but I am open. Addresses #829.

Note for cache-admin display users: Look for this in the ArticleAnnotationCache?.

06/13/08 16:54:47 changed by amit

  • priority changed from critical to high.

06/14/08 19:09:36 changed by pradeep

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

(In [5963]) Cache the track-backs query on the article display page.

This closes #829. Look for this new entry in the ArticleAnnotationCache?.