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).

!7

concept DWeb {
  S globalID;
  S webStruct;
}

p {
  mainConcepts.initialSave = false;
  dbIndexing(DWeb, 'globalID);
  print("changes=" + mainConcepts.changes);
  print("n=" + countConcepts(DWeb));
  int i = 0;
  for (Web web : allIndexedWebs()) {
    cset(uniq(DWeb, globalID := web.globalID), webStruct := struct(web));
    if ((i++ % 1000) == 0) print(i + " / " + countConcepts());
  }
  print("n=" + countConcepts(DWeb));
  if (noConsole()) cleanKillVM_noTimeOut();
}

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: 336 / 774
Version history: 4 change(s)
Referenced in: [show references]