Hex Artifact Content
Not logged in

Artifact 429a4a9a12a726a14406ffc2b442f98666e1ac5b:

File ideas.txt part of check-in [634fd117b1] - Jot down some notes for how to move forward. by drh on 2007-08-25 21:01:17.

0000: 52 61 6e 64 6f 6d 20 74 68 6f 75 67 68 74 73 3a  Random thoughts:
0010: 0a 0a 20 20 2a 20 20 43 68 61 6e 67 65 73 20 74  ..  *  Changes t
0020: 6f 20 6d 61 6e 69 66 65 73 74 20 74 6f 20 73 75  o manifest to su
0030: 70 70 6f 72 74 3a 0a 0a 20 20 20 20 20 2b 20 20  pport:..     +  
0040: 54 72 65 65 73 20 6f 66 20 77 69 6b 69 20 70 61  Trees of wiki pa
0050: 67 65 73 20 61 6e 64 20 74 69 63 6b 65 74 73 0a  ges and tickets.
0060: 20 20 20 20 20 2b 20 20 54 68 65 20 61 62 69 6c       +  The abil
0070: 69 74 79 20 74 6f 20 63 61 70 20 6f 72 20 63 6c  ity to cap or cl
0080: 6f 73 65 20 61 20 62 72 61 6e 63 68 0a 0a 20 20  ose a branch..  
0090: 2a 20 20 41 64 64 20 74 68 65 20 63 6f 6e 63 65  *  Add the conce
00a0: 70 74 20 6f 66 20 22 63 6c 75 73 74 65 72 73 22  pt of "clusters"
00b0: 20 74 6f 20 73 70 65 65 64 20 74 68 65 20 74 72   to speed the tr
00c0: 61 6e 73 66 65 72 20 6f 66 20 22 74 69 70 73 22  ansfer of "tips"
00d0: 0a 20 20 20 20 20 6f 6e 20 61 20 73 79 6e 63 2e  .     on a sync.
00e0: 0a 0a 20 20 2a 20 20 41 75 78 69 6c 69 61 72 79  ..  *  Auxiliary
00f0: 20 74 61 62 6c 65 73 3a 0a 0a 20 20 20 20 20 2b   tables:..     +
0100: 20 20 74 69 70 0a 20 20 20 20 20 2b 20 20 70 68    tip.     +  ph
0110: 61 6e 74 6f 6d 0a 20 20 20 20 20 2b 20 20 6d 6c  antom.     +  ml
0120: 69 6e 6b 0a 20 20 20 20 20 2b 20 20 70 6c 69 6e  ink.     +  plin
0130: 6b 0a 20 20 20 20 20 2b 20 20 62 72 61 6e 63 68  k.     +  branch
0140: 0a 20 20 20 20 20 2b 20 20 74 72 65 65 0a 0a 20  .     +  tree.. 
0150: 20 2a 20 50 6c 69 6e 6b 2e 69 73 70 72 69 6d 20   * Plink.isprim 
0160: 63 68 61 6e 67 65 64 20 74 6f 20 72 65 63 6f 72  changed to recor
0170: 64 3a 0a 20 20 20 20 20 2b 20 20 63 68 69 6c 64  d:.     +  child
0180: 20 69 73 20 74 68 65 20 70 72 69 6e 63 69 70 61   is the principa
0190: 6c 20 64 65 73 63 65 6e 64 65 6e 74 20 6f 66 20  l descendent of 
01a0: 70 61 72 65 6e 74 2e 0a 20 20 20 20 20 2b 20 20  parent..     +  
01b0: 63 68 69 6c 64 20 69 73 20 61 20 62 72 61 6e 63  child is a branc
01c0: 68 20 66 72 6f 6d 20 70 61 72 65 6e 74 0a 20 20  h from parent.  
01d0: 20 20 20 2b 20 20 63 68 69 6c 64 20 75 73 65 73     +  child uses
01e0: 20 70 61 72 65 6e 74 20 61 73 20 61 20 6d 65 72   parent as a mer
01f0: 67 65 0a 0a 20 20 2a 20 74 72 65 65 20 72 65 63  ge..  * tree rec
0200: 6f 72 64 73 0a 20 20 20 20 20 2b 20 74 79 70 65  ords.     + type
0210: 20 20 28 63 6f 64 65 2c 20 77 69 6b 69 2c 20 74    (code, wiki, t
0220: 69 63 6b 65 74 29 0a 20 20 20 20 20 2b 20 6e 61  icket).     + na
0230: 6d 65 20 20 28 66 6f 72 20 77 69 6b 69 20 61 6e  me  (for wiki an
0240: 64 20 74 69 63 6b 65 74 20 6f 6e 6c 79 29 0a 20  d ticket only). 
0250: 20 20 20 20 2b 20 74 72 65 65 69 64 0a 0a 20 20      + treeid..  
0260: 2a 20 62 72 61 6e 63 68 20 72 65 63 6f 72 64 73  * branch records
0270: 0a 20 20 20 20 20 2b 20 74 72 65 65 69 64 0a 20  .     + treeid. 
0280: 20 20 20 20 2b 20 6f 72 69 67 69 6e 5f 72 69 64      + origin_rid
0290: 0a 20 20 20 20 20 2b 20 6f 72 69 67 69 6e 5f 74  .     + origin_t
02a0: 69 6d 65 0a 20 20 20 20 20 2b 20 74 69 70 5f 72  ime.     + tip_r
02b0: 69 64 0a 20 20 20 20 20 2b 20 74 69 70 5f 74 69  id.     + tip_ti
02c0: 6d 65 0a 20 20 20 20 20 2b 20 63 6f 6c 6f 72 0a  me.     + color.
02d0: 0a 20 20 2a 20 77 65 62 73 69 74 65 20 63 61 6e  .  * website can
02e0: 20 74 6f 67 67 6c 65 20 69 73 70 72 69 6d 20 62   toggle isprim b
02f0: 65 74 77 65 65 6e 20 70 72 69 6e 63 69 70 61 6c  etween principal
0300: 20 61 6e 64 20 62 72 61 6e 63 68 2e 0a 20 20 20   and branch..   
0310: 20 20 2b 20 48 6f 77 20 74 6f 20 70 72 65 73 65    + How to prese
0320: 72 76 65 20 61 63 72 6f 73 73 20 72 65 62 75 69  rve across rebui
0330: 6c 64 2e 20 20 41 20 6e 65 77 20 72 65 63 6f 72  ld.  A new recor
0340: 64 20 74 79 70 65 3f 0a 20 20 20 20 20 2b 20 48  d type?.     + H
0350: 6f 77 20 74 6f 20 73 68 61 72 65 20 77 69 74 68  ow to share with
0360: 20 6f 74 68 65 72 20 72 65 70 6f 73 69 74 6f 72   other repositor
0370: 69 65 73 0a 20 20 2a 20 69 73 70 72 69 6d 20 67  ies.  * isprim g
0380: 75 65 73 73 65 64 20 75 73 69 6e 67 20 75 73 65  uessed using use
0390: 72 69 64 20 6f 66 20 70 61 72 65 6e 74 20 61 6e  rid of parent an
03a0: 64 20 63 68 69 6c 64 2e 20 20 43 68 61 6e 67 65  d child.  Change
03b0: 0a 20 20 20 20 69 6e 20 69 64 20 73 75 67 67 65  .    in id sugge
03c0: 73 74 73 20 61 20 62 72 61 6e 63 68 2e 20 20 53  sts a branch.  S
03d0: 61 6d 65 20 69 64 20 73 75 67 67 65 73 74 73 20  ame id suggests 
03e0: 70 72 69 6e 63 69 70 61 6c 2e 0a 20 20 20 20 46  principal..    F
03f0: 6f 72 20 61 20 74 69 65 2c 20 67 6f 20 77 69 74  or a tie, go wit
0400: 68 20 74 68 65 20 65 61 72 6c 69 65 73 74 20 63  h the earliest c
0410: 68 65 63 6b 2d 69 6e 20 61 73 20 74 68 65 20 70  heck-in as the p
0420: 72 69 6e 63 69 70 61 6c                          rincipal