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

Former2 kept loading for Aws Glue databases #341

Open
vishkk47 opened this issue Aug 7, 2023 · 1 comment
Open

Former2 kept loading for Aws Glue databases #341

vishkk47 opened this issue Aug 7, 2023 · 1 comment

Comments

@vishkk47
Copy link

vishkk47 commented Aug 7, 2023

Hi Iann0036,
I am facing loading issues as captured in attached images. The loader kept loading Aws Glue databases for more than 1 hour and had to close browser window. Tried multiple times but no luck with same issue.

I captured the console and network tab while loading was in progress. I have less than 10 Aws Glue databases I observed that still it's firing more than 1000 Fetch/XHR requests. Please see attached images and could you provide a solution?

Former2
Former2-Console

@iann0036
Copy link
Owner

iann0036 commented Aug 9, 2023

Hi @vishkk47,

Thanks for raising! I've had a look and can't see any obvious issues. Would it be possible to indicate what kind of request payload the latter XHR requests are making? Additionally, try running the following in console to attempt to narrow down the issue:

await sdkcall("Glue", "getDatabases", {
    // no params
}, true).then(async (data) => {

    await Promise.all(data.DatabaseList.map(database => {
        console.log("database");

        return sdkcall("Glue", "getTables", {
            DatabaseName: database.Name
        }, true).then(async (data) => {
            await Promise.all(data.TableList.map(table => {
                console.log("table");

                return sdkcall("Glue", "getPartitions", {
                    DatabaseName: database.Name,
                    TableName: table.Name
                }, true).then((data) => {
                    data.Partitions.forEach(partition => {
                        console.log("partition");
                    });
                });
            }));
        });
    }));
}).catch(() => { });
console.log("end");

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

2 participants