- SELECT * FROM updates where "updateID" = 100;
- With 10M+ record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const app = express(); | |
const Product = require('../db/model.js') | |
const port = 3000; | |
app.use(express.static('dist')); | |
app.get('/api/products', (req, res) => { | |
const id = req.query.id; | |
Product.findById(id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const faker = require('faker'); | |
const db = require('./index.js'); | |
const Product = require('./model.js'); | |
const numOfDataPoints = 10; | |
var generateEntry = function(numOfVariations) { | |
var randomTitle = faker.commerce.productName(); //Fender Stratocaster | |
var randomDescription = faker.lorem.paragraph(); |