Skip to content

Performance: Payment plan's included product dropdown is too slow #815

Description

@rajat1saxena

Took 20+ seconds.

Image

Graph payload

{
    "query": {
        "query": "\n            query ($page: Int, $limit: Int, $filter: [CourseFilters], $publicView: Boolean) {\n                products: getProducts(page: $page, limit: $limit, filterBy: $filter, publicView: $publicView) {\n                    title\n                    courseId\n                    sales\n                    customers\n                    featuredImage {\n                        thumbnail\n                        file\n                    }\n                    pageId\n                    type\n                    published\n                    paymentPlans {\n                        planId\n                        name\n                        type\n                        oneTimeAmount\n                        emiAmount\n                        emiTotalInstallments\n                        subscriptionMonthlyAmount\n                        subscriptionYearlyAmount\n                    }\n                    defaultPaymentPlan\n                    user {\n                        name\n                        avatar {\n                            thumbnail\n                        }\n                    }\n                    privacy\n                    slug\n                },\n                totalProducts: getProductsCount(filterBy: $filter, publicView: $publicView)\n            }",
        "variables": {
            "page": 1,
            "limit": 1000,
            "filter": [
                "COURSE",
                "DOWNLOAD"
            ],
            "publicView": false
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance related issues reported by tools like Lighthouse

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions