Skip to content

Please help, paging doesn't work, I am getting MAD ! #360

@typhoonsimon

Description

@typhoonsimon

Hi,

I have installed and synced the explorer, and fixed many things that I will pull to your repo. Please help me with this issue cause I am getting MAD. The page limit doesn't work, and the accesses are KILLING my server:
http://lcp.altcoinwarz.com

I have isolated the issue in the query part:
get_last_txs_ajax: function(start, length, min, cb) {
Tx.countDocuments({'total': {$gte: min}}, function(err, count){
Tx.find({'total': {$gte: min}}).sort({blockindex: 'desc'}).skip(Number(start)).limit(Number(length)).exec(function(err, txs){
if (err) {
return cb(err);
} else {
return cb(txs, count);
}
});
});
},

No matter WHAT you pass to that function, it returns always the entire DATABASE. Please help me because this is very urgent for me ! I am sure everything is correct. I tested on different OSes already, same issue.

Thank you,
Cheers,
Simone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions