Commit f256192c authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] if big list, just select some terms (quick fix for now)

parent 15b5825c
Pipeline #3466 passed with stage
in 92 minutes and 36 seconds
......@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: gargantext
version: 0.0.6.8.5.8
version: 0.0.6.8.5.8
synopsis: Search, map, share
description: Please see README.md
category: Data
......
......@@ -32,10 +32,11 @@ import Gargantext.Database.Admin.Types.Node (ListId, CorpusId, NodeId(..), Conte
import Gargantext.Database.Prelude (Cmd, runPGSQuery)
import Gargantext.Database.Schema.Ngrams (ngramsTypeId, NgramsType(..))
import Gargantext.Prelude
import qualified Data.HashMap.Strict as HM
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Database.PostgreSQL.Simple as DPS
import qualified Data.HashMap.Strict as HM
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Database.PostgreSQL.Simple as DPS
import qualified Database.PostgreSQL.Simple.Types as DPST
-- | fst is size of Supra Corpus
......@@ -166,7 +167,7 @@ selectNgramsOccurrencesOnlyByContextUser_withSample cId int nt tms =
( int
, toDBid NodeDocument
, cId
, Values fields ((DPS.Only . unNgramsTerm) <$> tms)
, Values fields ((DPS.Only . unNgramsTerm) <$> (List.take 10000 tms))
, cId
, ngramsTypeId nt
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment