1 |
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* Repository.pm (weight_lock, weight_unlock): New methods. |
4 |
|
(term_weight_vector, save_term_weight_vector): Changed to use |
5 |
|
global props to save the term weight vector. |
6 |
|
|
7 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
8 |
|
|
9 |
|
* Document.pm (repo, prop_untainted, untainted_prop, save_prop, |
10 |
|
locked): New method. Introduced the concept of "tainted" such |
11 |
|
that we can access to the property in the locked code fragment |
12 |
|
without being afraid to update the property using old values. |
13 |
|
(get_or_create_graph_node): Updated to utilize |prop| family of |
14 |
|
method with locks. |
15 |
|
|
16 |
|
* Graph.pm (repo, lock, unlock): New methods. |
17 |
|
(add_nodes, create_node, schelling_update): Locks the database |
18 |
|
before the modifications. |
19 |
|
|
20 |
|
* Repository.pm (graph, get_document_by_id): New methods. |
21 |
|
|
22 |
|
* Node.pm (repo): New method. |
23 |
|
|
24 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
25 |
|
|
26 |
* Document.pm (lock): Changed to use the $db->id_lock method to |
* Document.pm (lock): Changed to use the $db->id_lock method to |
27 |
obtain the lock object. |
obtain the lock object. |
28 |
|
|