Skip to content

Adding Djinni – Anonymous job search – banner#48

Open
YaroslavPodorvanov wants to merge 12 commits intomainfrom
integration-of-the-djinni-anonymous-job-search-banner
Open

Adding Djinni – Anonymous job search – banner#48
YaroslavPodorvanov wants to merge 12 commits intomainfrom
integration-of-the-djinni-anonymous-job-search-banner

Conversation

@YaroslavPodorvanov
Copy link
Contributor

@YaroslavPodorvanov YaroslavPodorvanov commented Dec 27, 2025

Articles:

@YaroslavPodorvanov YaroslavPodorvanov self-assigned this Dec 27, 2025
@YaroslavPodorvanov YaroslavPodorvanov marked this pull request as draft December 27, 2025 19:23
@YaroslavPodorvanov
Copy link
Contributor Author

YaroslavPodorvanov commented Dec 27, 2025

Growth

SELECT                                    
    DATE_TRUNC('month', created_at),
    COUNT(*)                
FROM users                               
GROUP BY 1                     
ORDER BY 1;
{
    const registrationStats = [
        3,
        24,
        29,
        15,
        23,
        37,
        7,
        33,
        27,
        23,
        37,
        53,
        189,
        65,
        62,
        65,
        49,
        50,
        52,
        74,
        87,
        107,
        91,
        88,
        98,
        133,
        90,
        107,
        76,
        88,
        105,
        67,
        125,
        81,
        132,
        134
    ];

    function calculateCumulativeGrowth(values) {
        let sum = 0

        return values.map((current, index) => {
            if (index === 0) {
                sum += current
                return null
            }

            const growth = (current / sum) * 100
            sum += current

            return Number(growth.toFixed(2))
        });
    }

    console.log(calculateCumulativeGrowth(registrationStats));
}
[
    null,
    800,
    107.41,
    26.79,
    32.39,
    39.36,
    5.34,
    23.91,
    15.79,
    11.62,
    16.74,
    20.54,
    60.77,
    13,
    10.97,
    10.37,
    7.08,
    6.75,
    6.57,
    8.78,
    9.49,
    10.66,
    8.19,
    7.32,
    7.6,
    9.58,
    5.92,
    6.64,
    4.42,
    4.91,
    5.58,
    3.37,
    6.09,
    3.72,
    5.84,
    5.6
]

2025

Average: 5.77
Median 5.72
Geometric Mean 5.56
Largest 9.58
Smallest 3.37

SELECT                                    
    DATE_TRUNC('year', created_at),
    COUNT(*)                
FROM users                               
GROUP BY 1                     
ORDER BY 1;
Year Users
2023 311
2024 979
2025 1236

@YaroslavPodorvanov YaroslavPodorvanov marked this pull request as ready for review December 27, 2025 23:46
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

Successfully merging this pull request may close these issues.

1 participant