Evaluating bids

Mongoose Queries & Optimization

Published on the August 20, 2018 in IT & Programming

About this project

USD 250 - 500

We are looking for a database expert to help us doing queries and optimization on a model we have. Optimizations are to connect schemas to other schemas without losing speed and saving resources. Example:

We have this:

'use strict'

var mongoose = require('mongoose');
var schema = mongoose.schema;
var addressSchema = schema({
  country: String,
  administrative_area_level_1: String,
  administrative_area_level_2: String,
  locality: String,
  sublocality: String,
  neighborhood: String,
  postal_code: String,
  route: String,
  street_number: Number,
  premise: String.

  Subpremise: String.
  Coordinates: [Number]
});

module.exports = mongoose.model('Address', addressSchema);




And we want this:

'use strict'

var mongoose = require('mongoose');
var schema = mongoose.schema;
var addressSchema = schema({
  country: String,
  administrative_area_level_1: {type: schema.ObjectId, ref: 'Administrative_Area_Level_1'},
  administrative_area_level_2: {type: schema.ObjectId, ref: 'Administrative_Area_Level_2'},
  locality: {type: schema.ObjectId, ref: 'Locality'},
  sublocality: {type: schema.ObjectId, ref: 'Sublocality'},
  neighborhood: {type: schema.ObjectId, ref: 'Neighborhood'},
  postal_code: {type: schema.ObjectId, ref: 'Postal_Code'},
  route: {type: schema.ObjectId, ref: 'Route'},
  street_number: Number,
  premise: {type: schema.ObjectId, ref: 'Premise'}.
  Subpremise: {type: schema.ObjectId, ref: 'Subpremise'}.

  Coordinates: {type: schema.ObjectId, ref: 'Coordinates'}
});

module.exports = mongoose.model('Address', addressSchema);


We want to pass the key of country to  administrative_area_level_1 and so on.

Category IT & Programming
Subcategory Web development
What is the scope of the project? Medium-sized change
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
API Integrations Cloud Storage (Dropbox, Google Drive, etc.), Payment Processor (Paypal, Stripe, etc.), Social media (Facebook, Twitter, etc.), Other (Other APIs)
Roles needed Developer

Deadline: March 01, 2020

Skills needed

JavaScript Data Modeling Database Node.js MongoDB

Want to start working on this project?

Log into your Workana account or Register today. Boost your freelance work!

Other projects posted by Jose G.

Freelancers who already applied to this project

  • Educación Título Tecnicatura en Analisis de Sistemas Institución / ciudad / año / estado (en curso/finalizado/abandonado) ISSD/Cordoba/2018/En Curso Título Tecnicatura en Programación Inst...

  • Desarrollador BackEnd apasionado por la programacion, buenas practicas y excelente calidad cuento con experiencia en construccion e implementacion de API RESTFULL usando Node.Js, diseño de bases d...

  • Soy un Licenciado en Informática apasionado por la ciencia y la tecnología, siempre estoy hambriento de conocimiento, me interesa mucho crecer día a día personal y laboralmente, cuento con bastante...

  • Senior Full Stack Developer with 5+ years of experience in building web applications in Node.js, Angular 2, TypeScript, ES6, React.js, MongoDB, SQL, rabbitMQ, Javascript, Redis Using these libra...