Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smartare förslag #24

Open
dlidstrom opened this issue Aug 17, 2021 · 1 comment
Open

Smartare förslag #24

dlidstrom opened this issue Aug 17, 2021 · 1 comment

Comments

@dlidstrom
Copy link
Owner

dlidstrom commented Aug 17, 2021

Kör i en IRegisteredObject

https://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx/

QueueBackgroundWorkItem

@dlidstrom
Copy link
Owner Author

dlidstrom commented Aug 26, 2021

Frågor:

WITH topwords AS(
SELECT
    count(*) AS count
    , rw.word_id
FROM
    result_word rw
GROUP BY
    rw.word_id
ORDER BY
    count DESC)
SELECT
    tw.count
    , w.text
FROM
    topwords tw
JOIN word w ON
    tw.word_id = w.word_id
WHERE
    length(w.TEXT) = 6
ORDER BY
    count DESC
    , TEXT
LIMIT 100;

SELECT
    COUNT(*) FILTER (
    WHERE q.result_date IS NULL) count_nulls
    ,
  COUNT(*) FILTER (
    WHERE q.result_date IS NOT NULL) count_not_nulls
FROM
    query q;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant