Tag:data model

  • Docker builds Prometheus and grafana to monitor MySQL

    Time:2021-1-8

    Using docker to build MySQL monitoring system [toc] brief introduction Using Prometheus and grafana to build the monitoring system of index collection, storage and display. MySQL is built directly on the host computer. Prometheus and grafana are built through docker. service Start mode Private IP port remarks mysql VM 172.17.0.1 3306 grafana docker 172.17.0.3 3000:3000 […]

  • [Mongo] define schema and flexibly create and read Mongo (zero coding development) (3 / 3)

    Time:2021-1-8

    1. Configuration conf.js module.exports = { db: { url: ‘mongodb://127.0.0.1:27017/local’, options: { useNewUrlParser: true, } } } 2. Entrance index.js const Koa = require(‘koa’); const app = new Koa(); const config = require(‘./conf’) const {loadModel} = require(‘./framework/loader’) //Load the configuration corresponding field of the model loadModel(config)(app) //Introduction of dynamic configuration API const rest = require(‘./framework/router’); […]

  • If only one Python book is recommended, I want to pick it!

    Time:2020-11-19

    In early February of this year, I happened to see a tweet: The author of fluent Python has an exciting message: he’s writing the second edition! If you want to vote for the best Python advanced bibliography, this book will definitely be one of the most popular books. When I first wrote the “Python cat […]

  • How to optimize query performance in multi table query

    Time:2020-11-2

    In the actual development process, such as DDD Domain model congestion scheme or in order to make the data model more convenient for later expansion and interpretation, it is not convenient and not recommended to add status fields to solve the problem. However, the upper layer business is relatively complex, so there will be the […]

  • Mean stack novice navigation?

    Time:2020-10-29

    How do I use mean stack to build a simple app Recently, I have been studying the development of mean stack, but the tutorials from Google are too scattered. There are express, restful interfaces and angular resource designs, but there is no complete set of mean. And mature frameworks such asmeteor、meanio、meanjsIt’s not very suitable for […]

  • Vue part of front end interview (1) — talk about your understanding of MVVM

    Time:2020-10-12

    Talk about your understanding of MVVM [answer] MVVM consists of model, view and ViewModel Model represents the data model, and data modification and business logic can also be defined in the model; View represents the UI component, which is responsible for transforming the data model into UI and displaying it; ViewModel is an object that […]

  • Learning record of mongodb master class (day 22)

    Time:2020-9-30

    Write it at the front Because I want to design a database to practice, I temporarily decided to skip the operation and maintenance part and directly learn the part about “system architecture” in Chapter 4. Day 22 Today, we are going to learn the Chapter 41 | mongodb application scenarios and selection. Please click here […]

  • python flask_ Introduction to restful interface development

    Time:2020-9-24

    Python version: Python 3.8 First, let’s take a look at the simplest example: when we get to access’ / Hello ‘, we return success app.py from flask import Flask app = Flask(__name__) from flask_restful import Api,Resource class HelloWorld(Resource): def get(self): return ‘success’ api.add_resource(HelloWorld, ‘/hello’) if __name__ == ‘__main__’: app.run(port=3000) Next is the upgrade version. We […]

  • A concise, efficient and customizable open source Android comment control — commentview

    Time:2020-9-7

    @TOC catalog 1、 Control Overview 1.1 INTRODUCTION Commentview is a concise, efficient, customizable open source Android comment controlReply mode of building review、Drop down to refresh comments、Load more comments、Load more repliesAnd other functions,Customizable(style, data model, layout), which can be easily expanded according to requirements. 1.2. Functional features Functional features Support drop-down refresh comments Support pull up […]

  • Mongoengine + Flash Development tips (1)

    Time:2020-8-24

    1. The data model class refers to itself, such as a list of people who are concerned carelist = ListField(ReferenceField(‘self’)) 2. Query the reference field. The reference field can only query the objectid, and other fields cannot be queried, unless the objectid of the target object is found first, and then the reference field is […]

  • Analysis of [IOS] core data I — enabling core data

    Time:2020-7-26

    Core data is a very important way of data persistence in IOS. Fmdb, which has been used to store data before, seldom uses core data. However, it is necessary to understand the data persistence method on this large scaleDue to the limited understanding of the author, please correct the incorrect place, thank you! Before we […]

  • EF Core-1

    Time:2020-7-22

    Thinking with questions, Hello everyone! A few days ago, I learned about the development mode of EF core: DB first (database first), model first (mode first), code first (code first). Most of my contacts are DB first. If you understand, some open source background projects will have the latter two, because it is convenient for […]