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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+shift+g g", | |
"command": "-workbench.view.scm", | |
"when": "gitlens:enabled && gitlens:keymap == 'chorded'" | |
}, | |
{ | |
"key": "shift+cmd+2", | |
"command": "workbench.action.nextEditorInGroup" |
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
[ | |
{ | |
"name": "Dominic King", | |
"text": "elit sed consequat auctor, nunc nulla vulputate dui, nec tempus", | |
"numberrange": 3, | |
"alphanumeric": "FAK07RDY6GL", | |
"list": 3, | |
"country": "Germany", | |
"region": "Southwestern Tagalog Region", | |
"postalZip": "88127", |
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 dotenv = require('dotenv'); | |
dotenv.config() | |
const {promises: fs} = require('fs'); | |
const {MongoClient, ServerApiVersion} = require('mongodb'); | |
const DB_NAME = 'performance1m'; | |
const PATH_1MIL = '../dataset/1m-generated.json'; | |
(async () => { |
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 dotenv = require('dotenv'); | |
dotenv.config() | |
const fs = require('fs'); | |
const {MongoClient, ServerApiVersion} = require("mongodb"); | |
const JsonlParser = require('stream-json/jsonl/Parser'); | |
const parser = new JsonlParser(); | |
const objectSize = require('object-sizeof'); | |
const radash = require('radash'); | |
const lodash = require('lodash'); |
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
[ | |
{ | |
"review_id": "KU_O5udG6zpxOg-VcAEodg", | |
"user_id": "mh_-eMZ6K5RLWhZyISBhwA", | |
"business_id": "XQfwVwDr-v0ZS3_CbbE5Xw", | |
"stars": 3.0, | |
"useful": 0, | |
"funny": 0, | |
"cool": 0, | |
"text": "If you decide to eat here, just be aware it is going to take about 2 hours from beginning to end. We have tried it multiple times, because I want to like it! I have been to it's other locations in NJ and never had a bad experience. \n\nThe food is good, but it takes a very long time to come out. The waitstaff is very young, but usually pleasant. We have just had too many experiences where we spent way too long waiting. We usually opt for another diner or restaurant on the weekends, in order to be done quicker.", |
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 dotenv = require('dotenv'); | |
dotenv.config() | |
const fs = require('fs'); | |
const objectSize = require('object-sizeof'); | |
const radash = require('radash'); | |
const JsonlParser = require('stream-json/jsonl/Parser'); | |
const {MongoClient, ServerApiVersion} = require("mongodb"); | |
const parser = new JsonlParser(); |
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
{ | |
"success": 1, | |
"query_summary": { | |
"num_reviews": 100 | |
}, | |
"reviews": [ | |
{ | |
"recommendationid": "96150189", | |
"author": { | |
"steamid": "76561198838108725", |
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 fs = require('fs'); | |
const {from = 0, to = 1} = require('minimist')(process.argv.slice(2)); | |
const radash = require('radash'); | |
const BASE_PATH = '../dataset/reviews'; | |
const PARALLEL_EXECUTIONS = 5; | |
const LOG_PATH_EVERY = 1_000_000; | |
(async () => { | |
let started = Date.now() |
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 dotenv = require('dotenv'); | |
dotenv.config() | |
const fs = require('fs'); | |
const {from = 1, to = 20} = require('minimist')(process.argv.slice(2)); | |
const radash = require('radash'); | |
const {MongoClient, ServerApiVersion} = require("mongodb"); | |
const lodash = require("lodash"); | |
const objectSize = require("object-sizeof"); |
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 dotenv = require('dotenv'); | |
dotenv.config() | |
const {MongoClient, ServerApiVersion} = require('mongodb'); | |
const DB_NAME = 'performance63m'; | |
const COLLECTION_NAME = '63mil-collection'; | |
(async () => { | |
try { |
OlderNewer