Save huge document (record) using Mongoose and Node.js
Budget $50-60 CAD
Job Description:
Hi,
I am working with mongoose and node.js. I want to insert a new huge "Record" using this lines :
const RawRecord = {
user_id : [login to view URL](),
user_email : [login to view URL],
hexoskin_record_id : req.body.record_id,
hexoskin_start_date : [login to view URL](),
hexoskin_duration : [login to view URL],
status : [login to view URL],
acceleration_x : [login to view URL]( acceleration_X),
acceleration_y : [login to view URL]( acceleration_Y),
acceleration_z : [login to view URL]( acceleration_Z),
respiration_thoracic : [login to view URL]( respiration_thoracic),
respiration_abdominal : [login to view URL]( respiration_abdominal)
};
const rawrecord = new RawRecords(RawRecord);
const NewRawRecord = await [login to view URL](); //<== error at this line, because the data are too big. and I receive this message:
RangeError: Value undefined out of range for undefined options property undefined
"RawRecord" variable : See the attached file
To solve this problem :
- Split this into many individual doc with ref to mother entity
- Then we can use mongodb aggregate pipeline to group them again when we need to access them
- Use $match and $lookup
Regards
Awarded to:
11 freelancers are bidding on average $85 for this job
hi mate, I am professional JavaScript software engineer having about 2.5 years of combine experience in react native, React, angular, node js, Firebase realtime and mongo db. I am currently working on the home schoolin More
Hi, how are you? I go through the description and read it carefully, I know exactly what you are looking for. I have 5+ years’ experience in these skills MongoDB, Node.js, JavaScript, JSON and NoSQL Couch & Mongo. I h More
Hello Client I'll provide you with clear and quirk result. I'm senior web developer with rich experience in web development and database management I have deep knowledge in MongoDB I hope to work with you. Pleaes conta More
Hello Sir, I will use the logic used in this code and optimize it to make it work on your project. Please message me in chat. We can discuss and I will start working on it once you initiate the contract. Expecting a p More