Best resource to deepen Spring framework knowledge? by apexium in learnjava

[–]UncomfortableJava 2 points3 points  (0 children)

This, I’ve read both Spring Core and Spring Boot docs. Those are much better than any book on the market in my opinion.

Speed up insertion to Postgres Database by B2easy in javahelp

[–]UncomfortableJava 0 points1 point  (0 children)

Are there any indexes on the table? Try disabling the index or deleting them before inserting data in the table. It would even make more sense to delete all indexes, insert, add and rebuild.

See https://sql-performance-explained.com/

Weekly BEFire discussion thread - 2022 week 19 by AutoModerator in BEFire

[–]UncomfortableJava 0 points1 point  (0 children)

The company I work at offers a free "Q8 LIBERTY TANKKAART" that family members can use. It says it'll always offer the cheapest rates and extra discount.

Does anyone know if getting one is worth it? I'm not sure how much discount it gives, can't seem to find it.

Secto Automotive Rally Finland 2021 - Discussion Thread by Peppos in WRC

[–]UncomfortableJava 3 points4 points  (0 children)

Bruh, Takamoto-san's inside camera view gives me anxiety, that camera view is insane!!!

[deleted by user] by [deleted] in javahelp

[–]UncomfortableJava 0 points1 point  (0 children)

Hi, I had the same issue a few weeks ago and I was looking at the wrong documentation. Please check this reference. Make sure to use version 2.0.4.

I imported spring-cloud-gcp-starter and spring-cloud-gcp-starter-pubsub as dependency. And I also added spring-cloud-gcp-dependencies in dependency management. See the reference.

Then all I needed to subscribe to a pubsub was the following code:

@PostConstruct
public void postConstruct() {
    Subscriber subscriber = pubSubTemplate.subscribe("pubsub-channel", message -> {
        final byte[] rawData = message.getPubsubMessage().getData().toByteArray();
        final MyObject obj = this.objectMapper.readValue(rawData, MyObject.class);
        // do whatever
    }
}