Skip to content

Commit 9e03785

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
facts parameter
1 parent fdc7317 commit 9e03785

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RUN \
3232
zn "DCANALYTICS" \
3333
zpm "install dsw" \
3434
zpm "install isc-dev" \
35+
zpm "install webterminal" \
3536
do ##class(dev.code).workdir("/irisdev/app/src") \
3637
do EnableDeepSee^%SYS.cspServer("/csp/dcanalytics/") \
3738
do ##class(Community.Utils).setup("/opt/dcanalytics/globals.xml") \

src/cls/Community/Utils.cls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Class Community.Utils [ Abstract ]
22
{
33

4-
ClassMethod setup(globalPath As %String = "") As %Status
4+
ClassMethod setup(globalPath As %String = "", facts = 10000) As %Status
55
{
66
if globalPath = "" {
77
write "Please input path to global GZ file.", !
@@ -26,7 +26,7 @@ ClassMethod setup(globalPath As %String = "") As %Status
2626
return:$$$ISERR(sc) sc
2727

2828
write "Building cubes", !
29-
set sc = ..UpdateCubes()
29+
set sc = ..UpdateCubes(,facts)
3030
return:$$$ISERR(sc) sc
3131

3232
w "Done!", !
@@ -64,7 +64,7 @@ ClassMethod buildIndices() As %Status
6464
return sc
6565
}
6666

67-
ClassMethod UpdateCubes(verbose = 1) As %Status
67+
ClassMethod UpdateCubes(verbose = 1, facts = 10000) As %Status
6868
{
6969
set st = ##class(%DeepSee.Utils).%GetCubeList(.list, "cubes")
7070
return:$$$ISERR(st) st
@@ -75,7 +75,7 @@ ClassMethod UpdateCubes(verbose = 1) As %Status
7575
#; if (cube="POST") continue
7676
quit:cube=""
7777

78-
Set st1 = ##class(%DeepSee.Utils).%BuildCube(cube, $$$YES, verbose,,10000)
78+
Set st1 = ##class(%DeepSee.Utils).%BuildCube(cube, $$$YES, verbose,,facts)
7979

8080
set st = $$$ADDSC(st, st1)
8181
}

src/cls/Community/iKnow/Answer.cls

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Parameter DomainName As STRING = "CommunityAnswer";
77

88
Parameter BlackLists As STRING = "BLcommunity";
99

10-
ClassMethod GetConceptsByID(ID As %Integer, ByRef CList, Flg = 0) As %String
10+
ClassMethod GetConceptsByID(ID As %Integer, ByRef CList, Flg = 0)
1111
{
1212
set domId = ##class(%iKnow.Domain).GetOrCreateId(..#DomainName)
1313

@@ -38,7 +38,7 @@ ClassMethod GetConceptsByID(ID As %Integer, ByRef CList, Flg = 0) As %String
3838
}
3939

4040
/// Returns the combined sets and concepts by answer ID
41-
ClassMethod GetSetsAndConceptsByID(ID As %Integer) As %String
41+
ClassMethod GetSetsAndConceptsByID(ID As %Integer)
4242
{
4343
set st = ..GetConceptsByID(ID, .CList, 1)
4444
set ^AnswerSets(ID) = ""
@@ -133,8 +133,7 @@ ClassMethod Update() As %Status
133133
set tSC = lister.AddListToBatch(myquery, id, group, data, meta)
134134
do loader.ProcessBatch()
135135

136-
return "OK"
136+
return $$$OK
137137
}
138138

139139
}
140-

0 commit comments

Comments
 (0)