首页 \ 问答 \ Redshift(业务分析)(Redshift (Business Analytics))

Redshift(业务分析)(Redshift (Business Analytics))

我正在使用亚马逊学生订阅数据仓库项目。 我已经能够设置redshift集群,我可以通过sql工作台查询表。 我需要对数据执行BI分析任务,我发现开源的唯一选择是Redash。 我无法确定在redash redshift设置中所需的“host”字段中输入的内容。 另外,有没有直接的方式来执行该操作?


I am using Amazon student subscription for a datawarehouse project. I have been able to setup redshift cluster and I am able to query tables via sql work bench. I need to perform BI analysis tasks on the data, the only option I found that was open source is Redash. I am not being able to identify what to enter in "host" field required in the redash redshift setup. Plus, is there any straight forward way to perform that?


原文:https://stackoverflow.com/questions/36808325
更新时间:2022-05-01 15:05

最满意答案

jQuery $ .when()接受延迟对象。 当您的ajaxRequisition返回non deferred$.when()将返回已解决的promise。

尝试更改您的代码,

function ajaxRequisition1 () {
    return $.ajax({
        ...
    });
}

function ajaxRequisition2 () {
    return $.ajax({
        ...
    });
}

$.when.apply(null, [ajaxRequisition1(),ajaxRequisition2()]).done(function () {
    console.log("Completed all requests.");
});

jQuery $.when() accepts deferred objects. While your ajaxRequisition returns a non deferred, $.when() will then return a resolved promise.

Try to change your code,

function ajaxRequisition1 () {
    return $.ajax({
        ...
    });
}

function ajaxRequisition2 () {
    return $.ajax({
        ...
    });
}

$.when.apply(null, [ajaxRequisition1(),ajaxRequisition2()]).done(function () {
    console.log("Completed all requests.");
});

相关问答

更多
  • 什么是AJAX?[2023-12-17]

    简介 术语Ajax用来描述一组技术,它使浏览器可以为用户提供更为自然的浏览体验。在Ajax之前,Web站点强制用户进入提交/等待/重新显示范例,用户的动作总是与服务器的“思考时间”同步。Ajax提供与服务器异步通信的能力,从而使用户从请求/响应的循环中解脱出来。借助于Ajax,可以在用户单击按钮时,使用JavaScript和DHTML立即更新UI,并向服务器发出异步请求,以执行更新或查询数据库。当请求返回时,就可以使用JavaScript和CSS来相应地更新UI,而不是刷新整个页面。最重要的是,用户甚至不知 ...
  • 什么是AJAX[2023-12-29]

    局布提交...
  • (一)在客户端页面写如下代码: