Click here to Skip to main content
15,889,825 members

Comments by GeoFinex (Top 10 by date)

GeoFinex 24-Oct-22 10:42am View    
I already did that, check the code below

const output = [];
res.forEach(arr => arr.forEach(b => {
const resultBlock = output.find(r => r.department == b.department);
if (resultBlock) {
Object.assign(resultBlock, b);
} else {
output.push(b);
}
}));
GeoFinex 24-Oct-22 10:16am View    
Implemented the same code on this query
[
[
{
"department": "DRDO",
"pending": 1,
"processing": 1
}
],
[
{
"department": "DRDO",
"processing": 1
},
{
"department": "IIT",
"processing": 1
}
],
[
{
"department": "DMFT",
"disposed": 1
}
]
]

But the output is not as expected

[
{
"department": "DRDO",
"pending": 1,
"processing": 1
},
{
"department": "IIT",
"processing": 1
},
{
"department": "DMFT",
"disposed": 1
}
]
GeoFinex 6-Aug-19 14:03pm View    
Really agree you, but the Websockets api which i got is only for the startups like us not for individual traders, this ensures that it's possible

The reserved last option i have is to host the app on vm individually for each client where the trades will be executed.
But it's the last option.

Trying to get something relevant if exists.
GeoFinex 6-Aug-19 13:52pm View    
I think indexing the users cannot be used to handle these processes, doing this will execute the code simultaneously but not as i need.

Getting idea from your word "batch".
I think i should run around "map"
GeoFinex 10-Jun-19 1:05am View    
Agree, i already using a separate app to update data, but to retrieve data it must be on a single page.

It it be good to use: setTimeout(function () {}, to use these type of app or will have to move to something else like "SignalR StockTickData"

Regards