Simple optimization of EF Core

Summary This article is a relatively low and simple point of knowledge 1, Delayed Loading (Lazy Loading) Postpone loading until data usage;Only when accessing methods such as ToList/ToArray/First/FirstOrDefault(), delayed loading of navigation properties, etc.Only load data Example of delayed loading of navigation attributes using a proxy a ...

Posted by Jay_Seagrave on Wed, 01 Sep 2021 09:51:47 -0700

Beego Learning Notes 6: Paging Implementation

Implement Paging 1> Business logic for paging implementation 1->N data are displayed on each page. For the total number of data records M, the number of pages M%N==0?M/N:M/N+1; 2->Page Rendering Paging html Part 3>Switch pages, input parameters, background processing, and retrieve new eligible data 4>Paging method, js paging, and ...

Posted by irishred8575 on Sun, 19 Jul 2020 07:40:52 -0700

linux/window backup mysql database regularly

It is relatively simple for Linux to back up the database regularly. crontab can be used for scheduled backup. If windows is used, it may be troublesome. 1.Linux: Step 1: configure the backup directory code on the server: mkdir /var/lib/mysqlbackup cd /var/lib/mysqlbackup Step 2: write backup script code: vi dbbackup.shPaste the f ...

Posted by jara06 on Tue, 14 Jul 2020 09:05:18 -0700

django implements foreground and background data binding by submitting form with ajax+post

The first step is to introduce jquery files, either online or offline, to add to your own staticfiles What's demonstrated here is adding offline <script src={% static 'js/jquery-2.1.1.min.js' %}></script> Note that this sentence is added before the ajax jquery script you write. Then the HTML form is as follows: ...

Posted by ezekiel on Tue, 07 Jul 2020 07:35:38 -0700

Prompt access_when timed task is executed in micro messageToken invalidation (short note)

Scenario reproduction: The timer task is working, but when the timer function executes regularly, the error message access_is printed in the logToken fails (or cannot be obtained, etc.), access_in the test tableToken is 0; access_is available when you directly access a link to a timer function yourselfToken. Reason: When I execute by myself, ...

Posted by oldtimer on Mon, 06 Jul 2020 08:28:12 -0700

Necessary knowledge points of MySQL development log file

Necessary knowledge points of MySQL log file development Reference source: juejin.im/post/5b7c0aabf265da438415b9eb preface Log files record all kinds of activities that affect MySQL database. Common log files in MySQL database include error log, binary log, slow query log and query log. They are i ...

Posted by Yucky on Tue, 30 Jun 2020 00:40:28 -0700

Evaluation of million level data migration scheme

preface Recently, when the company used ABP to reconstruct the old project, the database was also switched from SQL SERVER to MySql. Tucao, the products used before make complaints about Windows Server 2008, SqlServer 2008R2,.Net Framework 4.5, and now embrace.net core. Back to the point. At present, there are 10w + and 100w + data in a single ...

Posted by cdwhalley.com on Mon, 29 Jun 2020 20:15:36 -0700

GRpc exception handling Filter

Global error handling server Microsoft has implemented it Interceptors They are similar to Filter or Middlewares stay ASP.NET MVC core or web API, they can be used for global exception handling, logging, validation, etc. This is the server-side Interceptor's own implementation. Continuation is a Task that must wait. Then, if any exception is ...

Posted by ahundiak on Mon, 29 Jun 2020 17:54:30 -0700

nodejs crawler project

The news data of several websites have been crawled before. Now we need to organize and display these data. The specific requirements are as follows The first step is to install the dependency package in npm install under the final project folder Here, I met a problem during the installation process. Th ...

Posted by moonman89 on Sun, 28 Jun 2020 20:05:01 -0700

Login case (black horse) - simple login case using druid database connection pool, JdbcTemplate technology and Servlet

catalog User login case requirements Development steps: 1. Create project, configuration file and import jar package. 2. Write logged in login.html Page. 3. Create the database userlogin and the table user. 4. Create a package com.qgl . 'domain'. Create an entity class user. The entity class user c ...

Posted by irish21 on Sun, 28 Jun 2020 17:55:56 -0700