Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Public catalog query global flag enabled

kmlussier Jan 4th, 2018 2 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2018-01-04 10:45:24.395 EST [21070] evergreen@evergreen LOG:  duration: 12.228 ms  statement: SELECT  "acplg".id, oils_i18n_xlate('asset.copy_location_group', 'acplg', 'name', 'id', "acplg".id::TEXT, 'en-US') AS "name", "acplg".opac_visible, "acplg".owner, "acplg".pos, "acplg".top FROM asset.copy_location_group AS "acplg" WHERE "acplg".owner IN (SELECT  (actor.org_unit_full_path("aou".id ))."id" AS "id" FROM actor.org_unit AS "aou"  WHERE "aou".id IN (1)) AND "acplg".opac_visible = 't' ORDER BY pos;
  2. 2018-01-04 10:45:24.794 EST [21004] evergreen@evergreen LOG:  duration: 51.813 ms  statement:         -- bib search: #CD_documentLength #CD_meanHarmonic #CD_uniqueWords core_limit(100000) badge_orgs(1) estimation_strategy(inclusion) skip_check(0) check_limit(1000) inside immigration depth(0)
  3.                 WITH w AS (
  4.  
  5.  
  6.         WITH xe56d660_keyword_xq AS (SELECT
  7.               (to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$inside$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), '')) || to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$inside$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), '')))&&
  8.               (to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$immigration$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), '')) || to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$immigration$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), ''))) AS tsq,
  9.               (to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$inside$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), '')) || to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$inside$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), ''))) ||
  10.               (to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$immigration$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), '')) || to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_21003$immigration$_21003$)),E'(?:\\s+|:)','&','g'),'&|')  || ')', '()'), ''))) AS tsq_rank ),lang_with AS (SELECT id FROM config.coded_value_map WHERE ctype = 'item_lang' AND code = $_21003$eng$_21003$),        pop_with AS (
  11.                     SELECT  record,
  12.                             ARRAY_AGG(badge) AS badges,
  13.                             SUM(s.score::NUMERIC*b.weight::NUMERIC)/SUM(b.weight::NUMERIC) AS total_score
  14.                       FROM  rating.record_badge_score s
  15.                             JOIN rating.badge b ON (
  16.                                 b.id = s.badge
  17.          AND b.scope = ANY ('{1}')) GROUP BY 1)
  18.         ,c_attr AS (SELECT (ARRAY_TO_STRING(ARRAY[c_attrs],'&'))::query_int AS vis_test FROM asset.patron_default_visibility_mask() x)
  19.         ,b_attr AS (SELECT (ARRAY_TO_STRING(ARRAY[b_attrs],'&'))::query_int AS vis_test FROM asset.patron_default_visibility_mask() x)
  20.         SELECT  id,
  21.                 rel,
  22.                 CASE WHEN cardinality(records) = 1 THEN records[1] ELSE NULL END AS record,
  23.                 NULL::INT AS total,
  24.                 NULL::INT AS checked,
  25.                 NULL::INT AS visible,
  26.                 NULL::INT AS deleted,
  27.                 NULL::INT AS excluded,
  28.                 badges,
  29.                 popularity
  30.           FROM  (SELECT m.source AS id,
  31.                         ARRAY[m.source] AS records,
  32.                         (AVG(
  33.                   (COALESCE(ts_rank_cd('{0.1, 0.2, 0.4, 1.0}', xe56d660_keyword.index_vector, xe56d660_keyword.tsq_rank, 14) * xe56d660_keyword.weight, 0.0)
  34.                   * evergreen.rel_bump(('{' || quote_literal(search_normalize($_21003$inside$_21003$)) || ',' || quote_literal(search_normalize($_21003$immigration$_21003$)) || '}')::TEXT[], xe56d660_keyword.value, '{word_order}'::TEXT[], '{10}'::NUMERIC[]))
  35.                 )+1 * COALESCE( NULLIF( FIRST(mrv.vlist @> ARRAY[lang_with.id]), FALSE )::INT * 5, 1))::NUMERIC AS rel,
  36.                         1.0/((AVG(
  37.                   (COALESCE(ts_rank_cd('{0.1, 0.2, 0.4, 1.0}', xe56d660_keyword.index_vector, xe56d660_keyword.tsq_rank, 14) * xe56d660_keyword.weight, 0.0)
  38.                   * evergreen.rel_bump(('{' || quote_literal(search_normalize($_21003$inside$_21003$)) || ',' || quote_literal(search_normalize($_21003$immigration$_21003$)) || '}')::TEXT[], xe56d660_keyword.value, '{word_order}'::TEXT[], '{10}'::NUMERIC[]))
  39.                 )+1 * COALESCE( NULLIF( FIRST(mrv.vlist @> ARRAY[lang_with.id]), FALSE )::INT * 5, 1)))::NUMERIC AS rank,
  40.                         FIRST(pubdate_t.value) AS tie_break,
  41.                         STRING_AGG(ARRAY_TO_STRING(pop_with.badges,','),',') AS badges,
  42.                         AVG(COALESCE(pop_with.total_score::NUMERIC,0.0::NUMERIC))::NUMERIC(2,1) AS popularity
  43.                   FROM  metabib.metarecord_source_map m
  44.  
  45.                 LEFT JOIN (
  46.                   SELECT fe.*, fe_weight.weight, xe56d660_keyword_xq.tsq, xe56d660_keyword_xq.tsq_rank /* search */
  47.                     FROM  metabib.keyword_field_entry AS fe
  48.                       JOIN config.metabib_field AS fe_weight ON (fe_weight.id = fe.field)
  49.                     JOIN xe56d660_keyword_xq ON (fe.index_vector @@ xe56d660_keyword_xq.tsq)
  50.                 ) AS xe56d660_keyword ON (m.source = xe56d660_keyword.source)
  51.  
  52.                         INNER JOIN metabib.record_attr_vector_list mrv ON m.source = mrv.source
  53.                         INNER JOIN biblio.record_entry bre ON m.source = bre.id
  54.                         LEFT JOIN pop_with ON ( m.source = pop_with.record )
  55.                         LEFT JOIN metabib.record_sorter pubdate_t ON m.source = pubdate_t.source AND attr = 'pubdate'
  56.                         ,lang_with
  57.                         ,c_attr
  58.                         ,b_attr
  59.                   WHERE 1=1
  60.                         AND (
  61.                   (xe56d660_keyword.id IS NOT NULL)
  62.                 )
  63.                 AND (
  64.                   (EXISTS (SELECT 1 FROM asset.copy_vis_attr_cache WHERE record = m.source AND vis_attr_vector @@ c_attr.vis_test)) OR ((b_attr.vis_test IS NULL OR bre.vis_attr_vector @@ b_attr.vis_test))
  65.                 )
  66.                   GROUP BY 1
  67.                   ORDER BY 4 ASC NULLS LAST,  5 DESC NULLS LAST, 3 DESC
  68.                   ORDER BY 4 ASC NULLS LAST,  5 DESC NULLS LAST, 3 DESC
  69.                   LIMIT 100000
  70.                 ) AS core_query
  71.         ) (SELECT * FROM w LIMIT 1000 OFFSET 0)
  72.                 UNION ALL
  73.           SELECT NULL,NULL,NULL,COUNT(*),COUNT(*),COUNT(*),0,0,NULL,NULL FROM w;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top