question

Upvotes
Accepted
1 1 4 2

How can I Avoid making database call in onUpdateMsg but need result to be stored in database.Can I have an example?

To solve slow consumer problem, How can I Avoid making database call in onUpdateMsg but need result to be stored in database.Can I have an example?

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apijava
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@MayassK

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hello @MayassK,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
17.2k 82 39 63

Hi @MayassK,

You will have to create an additional thread to process the updates separately. This will minimize the time spent within the onUpdateMsg(). Before processing the specific update, you will have to clone the incoming update using 'createUpdateMsg(UpdateMsg update).

Database updates are outside the scope of EMA. However, there may be some thread creation/processing examples out on the internet. Such as here or here.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.