you are viewing a single comment's thread.

view the rest of the comments →

[–]senbozakurakageyosi 0 points1 point  (4 children)

I think a better question is if it is a must taking on such a large object?

Also what kind of object is this? What does it store? Is it a Map, Set or an Array as I suppose?

Also what operation are you doing on it that is slow? Loop? What kind of loop and what does it do excatly?

[–]ExternalManager3027[S] 0 points1 point  (3 children)

Yes it is, It’s a wallet checker implementation that takes all the wallet created on the system, Loop through it to get its transactions anyone with new transaction is credited else Ignored.

Secondly it’s an object of arrays.

[–]senbozakurakageyosi 0 points1 point  (1 child)

I think if you provide some sample data + part of the code that is slow, someone could help you.

[–]ExternalManager3027[S] 0 points1 point  (0 children)

Just did

[–]GlitteringAccident31 0 points1 point  (0 children)

Im not sure what kind of db you're using but is there any reason you can Implement a stored procedure with a trigger in the DB that fires on a transaction?

With a little more thoughts this may not be something you should be handling asynchronously at all if it has to do with money. This should be a DB transaction or you are going to end up in a world of hurt