Verified Commit 65fa2834 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev' into 203-dev-corpus-json-import

parents c09e8365 e79e0c0a
Pipeline #4004 failed with stage
in 28 minutes and 33 seconds
## Version 0.0.6.9.9.4.5
* [BACK][OPTIM][[Node terms] Random slowness on loading a page list of terms (#199)](https://gitlab.iscpif.fr/gargantext/haskell-gargantext/issues/199)
## Version 0.0.6.9.9.4.4
* [FRONT][FIX/WIP][[Term table] Add term should not be suggested when term is already added (#544)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/544)
* [FRONT][FIX] File Type vs Node Type
## Version 0.0.6.9.9.4.3 ## Version 0.0.6.9.9.4.3
* [FRONT][FIX][APi tab not shown (#540)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/540) * [FRONT][FIX][APi tab not shown (#540)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/540)
......
...@@ -5,7 +5,7 @@ cabal-version: 1.12 ...@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
name: gargantext name: gargantext
version: 0.0.6.9.9.4.3 version: 0.0.6.9.9.4.5
synopsis: Search, map, share synopsis: Search, map, share
description: Please see README.md description: Please see README.md
category: Data category: Data
...@@ -56,7 +56,6 @@ library ...@@ -56,7 +56,6 @@ library
Gargantext.Core.Text.Corpus.Parsers Gargantext.Core.Text.Corpus.Parsers
Gargantext.Core.Text.Corpus.Parsers.CSV Gargantext.Core.Text.Corpus.Parsers.CSV
Gargantext.Core.Text.Corpus.Parsers.Date.Parsec Gargantext.Core.Text.Corpus.Parsers.Date.Parsec
Gargantext.Core.Text.Corpus.Parsers.JSON
Gargantext.Core.Text.List.Formats.CSV Gargantext.Core.Text.List.Formats.CSV
Gargantext.Core.Text.Metrics Gargantext.Core.Text.Metrics
Gargantext.Core.Text.Metrics.CharByChar Gargantext.Core.Text.Metrics.CharByChar
......
...@@ -6,7 +6,7 @@ name: gargantext ...@@ -6,7 +6,7 @@ name: gargantext
# | | | +----- Layers * : New versions with API additions # | | | +----- Layers * : New versions with API additions
# | | | | +--- Layers * : New versions without API breaking changes # | | | | +--- Layers * : New versions without API breaking changes
# | | | | | # | | | | |
version: '0.0.6.9.9.4.3' version: '0.0.6.9.9.4.5'
synopsis: Search, map, share synopsis: Search, map, share
description: Please see README.md description: Please see README.md
category: Data category: Data
......
...@@ -122,31 +122,29 @@ getOccByNgramsOnlyFast cId lId nt = do ...@@ -122,31 +122,29 @@ getOccByNgramsOnlyFast cId lId nt = do
-> Cmd err [(Text, DPST.PGArray Int)] -> Cmd err [(Text, DPST.PGArray Int)]
run cId' lId' nt' = runPGSQuery query run cId' lId' nt' = runPGSQuery query
( cId' ( cId'
, cId'
, lId' , lId'
, ngramsTypeId nt' , ngramsTypeId nt'
) )
query :: DPS.Query query :: DPS.Query
query = [sql| query = [sql|
SELECT ng.terms WITH node_context_ids AS
, ARRAY( (select context_id, ngrams_id
SELECT DISTINCT context_node_ngrams.context_id FROM context_node_ngrams_view
FROM context_node_ngrams WHERE node_id = ?
JOIN nodes_contexts ), ns AS
ON context_node_ngrams.context_id = nodes_contexts.context_id (select ngrams_id FROM node_stories
WHERE ng.id = context_node_ngrams.ngrams_id WHERE node_id = ? AND ngrams_type_id = ?
AND nodes_contexts.node_id = ? )
) AS context_ids
FROM ngrams ng SELECT ng.terms,
JOIN node_stories ns ON ng.id = ns.ngrams_id ARRAY ( SELECT DISTINCT context_id
JOIN node_node_ngrams nng ON ns.node_id = nng.node2_id FROM node_context_ids
WHERE nng.node1_id = ? WHERE ns.ngrams_id = node_context_ids.ngrams_id
AND nng.node2_id = ? )
AND nng.ngrams_type = ? AS context_ids
AND nng.ngrams_id = ng.id FROM ngrams ng
AND nng.ngrams_type = ns.ngrams_type_id JOIN ns ON ng.id = ns.ngrams_id
ORDER BY ng.id ASC;
|] |]
......
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