Iphone cannot load heavy data

Viewed 21

currently IPhone or Ipad cannot load huge data. But on the desktop and Android phones, everything is working fine.

Below is my specification

Below is my Schema

const adminAuditSchema = mongoose.Schema({
who: {
    type: String,
    //ref: 'Admin'
},
what: {
    type: String
},
when: {
    type: Date
},
who_id: {
    type: Schema.Types.ObjectId
},
who_type: {
    type: String,
    emum: ['Admin', 'Customer']
}
  });

Below is how coding in Node JS

app.get('/audit-trail', function (req, res) {
    AdminAudit.find(null, 'who what when', { sort: { 'when': 'descending' } }).exec(function (err, docs) {
        res.json(docs)
    });
});

Currently, my Admin audit trail has 120K ++ data in the database. So, how do I load all the data on the Iphone and Ipad?

0 Answers
Related