1 |
|
2009-09-23 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* Document.pm (lock): Typo; it did not lock in fact, orz. |
4 |
|
|
5 |
|
* Graph.pm (schelling_update): Reuse the |repo| object's child |
6 |
|
objects where possible to avoid locking timing problem and so on. |
7 |
|
|
8 |
|
2009-09-23 Wakaba <wakaba@suika.fam.cx> |
9 |
|
|
10 |
|
* Document.pm (prop_untainted): Typo. |
11 |
|
(untainted_prop): The |prop_untainted| property was not set. |
12 |
|
|
13 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
14 |
|
|
15 |
|
* Repository.pm (weight_lock, weight_unlock): New methods. |
16 |
|
(term_weight_vector, save_term_weight_vector): Changed to use |
17 |
|
global props to save the term weight vector. |
18 |
|
|
19 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
20 |
|
|
21 |
|
* Document.pm (repo, prop_untainted, untainted_prop, save_prop, |
22 |
|
locked): New method. Introduced the concept of "tainted" such |
23 |
|
that we can access to the property in the locked code fragment |
24 |
|
without being afraid to update the property using old values. |
25 |
|
(get_or_create_graph_node): Updated to utilize |prop| family of |
26 |
|
method with locks. |
27 |
|
|
28 |
|
* Graph.pm (repo, lock, unlock): New methods. |
29 |
|
(add_nodes, create_node, schelling_update): Locks the database |
30 |
|
before the modifications. |
31 |
|
|
32 |
|
* Repository.pm (graph, get_document_by_id): New methods. |
33 |
|
|
34 |
|
* Node.pm (repo): New method. |
35 |
|
|
36 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
37 |
|
|
38 |
|
* Document.pm (lock): Changed to use the $db->id_lock method to |
39 |
|
obtain the lock object. |
40 |
|
|
41 |
|
* Node.pm (neighbor_documents): New method. |
42 |
|
|
43 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
44 |
|
|
45 |
|
* Document.pm (title, get_or_create_graph_node): New methods (made |
46 |
|
from codes moved from main.pl). |
47 |
|
|
48 |
|
2009-09-20 Wakaba <wakaba@suika.fam.cx> |
49 |
|
|
50 |
|
* Graph.pm (schelling_update): Implemented. |
51 |
|
|
52 |
2009-09-20 Wakaba <wakaba@suika.fam.cx> |
2009-09-20 Wakaba <wakaba@suika.fam.cx> |
53 |
|
|
54 |
* Graph.pm (add_nodes): Improved the way to determine the number |
* Graph.pm (add_nodes): Improved the way to determine the number |