将数据从数据库导入GemFire

时间:2022-03-30 13:45:57

I'am working on a project with GemFire. To import data from database to GemFire, i did a java program that connects to database and to GemFire and then i select data from database and put it in GemFire region. I want to know if there is another possibility to import data continuously from database to GemFire ? or if gemfire has connectors to some databases ?

我正在与GemFire合作开展一个项目。为了将数据从数据库导入GemFire,我做了一个连接数据库和GemFire的java程序,然后从数据库中选择数据并将其放入GemFire区域。我想知道是否有另一种可能性从数据库连续导入数据到GemFire?或者如果gemfire有连接到某些数据库?

1 个解决方案

#1


2  

The only connector I'm aware of is the GemFire-Greenplum Connector, I don't think there's any other around.

我所知道的唯一连接器是GemFire-Greenplum连接器,我认为还有其他连接器。

At the top of my mind, another option to insert data into your region from the database would be to use Cache Loaders. Using this approach you really don't need to put data into the GemFire region until someone actually asks for that data.

在我的脑海中,从数据库向您的区域插入数据的另一个选择是使用缓存加载器。使用这种方法,您实际上不需要将数据放入GemFire区域,直到有人实际要求该数据。

You might want to have a look at Keeping the Cache in Sync with Outside Data Sources, it contains details about different approaches.

您可能希望了解保持缓存与外部数据源同步,它包含有关不同方法的详细信息。

Cheers.

#1


2  

The only connector I'm aware of is the GemFire-Greenplum Connector, I don't think there's any other around.

我所知道的唯一连接器是GemFire-Greenplum连接器,我认为还有其他连接器。

At the top of my mind, another option to insert data into your region from the database would be to use Cache Loaders. Using this approach you really don't need to put data into the GemFire region until someone actually asks for that data.

在我的脑海中,从数据库向您的区域插入数据的另一个选择是使用缓存加载器。使用这种方法,您实际上不需要将数据放入GemFire区域,直到有人实际要求该数据。

You might want to have a look at Keeping the Cache in Sync with Outside Data Sources, it contains details about different approaches.

您可能希望了解保持缓存与外部数据源同步,它包含有关不同方法的详细信息。

Cheers.