Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1011831 // Put all webs in concept DB v2

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (15662L/110K).

1  
!7
2  
3  
concept DWeb {
4  
  S globalID;
5  
  S webStruct;
6  
}
7  
8  
p {
9  
  mainConcepts.initialSave = false;
10  
  dbIndexing(DWeb, 'globalID);
11  
  print("changes=" + mainConcepts.changes);
12  
  print("n=" + countConcepts(DWeb));
13  
  int i = 0;
14  
  for (Web web : allIndexedWebs()) {
15  
    cset(uniq(DWeb, globalID := web.globalID), webStruct := struct(web));
16  
    if ((i++ % 1000) == 0) print(i + " / " + countConcepts());
17  
  }
18  
  print("n=" + countConcepts(DWeb));
19  
  if (noConsole()) cleanKillVM_noTimeOut();
20  
}

Author comment

Began life as a copy of #1011825

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011831
Snippet name: Put all webs in concept DB v2
Eternal ID of this version: #1011831/5
Text MD5: 5bdfcd21cc39f8197addffa07509f29c
Transpilation MD5: 5880a433160db166142522c912b4865b
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-06 01:42:21
Source code size: 495 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 1216
Version history: 4 change(s)
Referenced in: [show references]