Analisando propostas

Mongoose Queries & Optimization

Publicado em 20 de Agosto de 2018 dias na TI e Programação

Sobre este projeto

Aberto

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.

Categoria TI e Programação
Subcategoria Programação
Qual é o alcance do projeto? Alteração média
Isso é um projeto ou uma posição de trabalho? Um projeto
Tenho, atualmente Eu tenho especificações
Disponibilidade requerida Conforme necessário
Integrações de API Cloud Storage (Dropbox, Google Drive, etc), Payment Processor (Paypal, Stripe, etc), Mídias sociais (Facebook, Twitter, etc), Outros (Outras APIs)
Funções necessárias Desenvolvedor

Prazo de Entrega: 27 de Agosto de 2018

Habilidades necessárias

Outro projetos publicados por J. G.