[英]How to query heroku database from salesforce (eg. via vf page)
can anyone help me on this? 谁可以帮我这个事? How can I achieve the following:
如何实现以下目标:
I need to set up a prototype integration with heroku from salesforce application. 我需要通过salesforce应用程序与heroku建立原型集成。 The need is to store a huge volume of data in a single heroku table and accessble from salesforce - eg: have a vf page in salesforce which queries the data in realtime
需要将大量数据存储在单个heroku表中,并且可以从salesforce进行访问-例如:在salesforce中有一个vf页面,可以实时查询数据
We're doing this. 我们正在这样做。 We use Heroku connect.
我们使用Heroku connect。 We created a salesforce custom object and bidirectionally synched it using Heroku connect.
我们创建了一个salesforce自定义对象,并使用Heroku connect对其进行了双向同步。 You can then update the data on either side (in salesforce or in Heroku:PG).
然后,您可以在任一侧(在salesforce或Heroku:PG中)更新数据。
But Heroku connect is expensive & priced on a # of synchs per month. 但是Heroku连接非常昂贵,而且每个月的同步费用也要定价。
https://www.heroku.com/connect https://www.heroku.com/connect
Firstly, heroku is not a database. 首先,heroku不是数据库。 It is a PAAS.
它是一个PAAS。
My approach would have been : 我的方法是:
- Create a heroku app(this is a link to create a node.js app) link -创建一个heroku应用程序(这是创建node.js应用程序的链接 ) 链接
- After you create the app choose one of the datastore addons -> link if you want a SQL/Column oriented Database choose heroku postgres or ClearDB Mysql -创建应用程序后,如果要使用面向SQL /列的数据库,请选择数据存储插件之一-> 链接 ,然后选择heroku postgres或ClearDB Mysql
- Secondly you actually need a webserver that exposes this database to you. -其次,您实际上需要一个Web服务器来向您公开此数据库。 I am thinking you would make this a webservice of some sort.
我在想您可以使它成为某种Web服务。 You can build that in node.js.
您可以在node.js中构建它。 Here is something that will get you started or give you an idea - link
这可以帮助您起步或给您一个想法- 链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.