Table based ddl (alter table) audit of Postgresql
If you want to record the user table modified and defined by DDL, set the default value, and so on, you can use event triggers to achieve this purpose.
Examples are as follows:
testdb=# create extension hstore;
testdb=# create or replace function ef_alter() returns event_trigger as $$
declare
rec hstore;
begin
select hstore( ...
Added by m4rw3r on Tue, 24 Mar 2020 17:11:38 +0200
SpringBoot+Redis solves the problem of thousands of submissions in an instant
In a real development project, an exposed interface is often faced with a large number of repeated requests submitted in an instant. If you want to filter out the repeated requests and cause damage to the business, you need to implement idempotent!
Let's explain the concept of idempotent:
Any number of executions has the same impact as a ...
Added by azylka on Tue, 24 Mar 2020 03:56:42 +0200
Implementation of user operation logging based on struts 2 interceptor
Here based on struts 2 interceptor to achieve.
Use struts 2 interceptor to intercept all or specified requests, acquire and store the information such as operation user, operation time, operation location, operation result and operation time in the process of user operation, so as to facilitate the query and display of data in the future.
Op ...
Added by agge on Mon, 23 Mar 2020 17:56:45 +0200
Laravel Model Association, association query, preload use instance
Data tables are usually associated with each other, and it is usually easier to use multi table associated query, which is more convenient and simple for more complex model associated query using laravel, Chinese document , take two tables of provinces and cities as an example
Preliminary preparation:
First, create a PlaceController controller ...
Added by zab329 on Mon, 23 Mar 2020 11:54:51 +0200
Multithreading and data sharing in python
In the past, when writing multithreading and multiprocessing, because they usually complete their own tasks, each subthread or subprocess does not have much contact before. If I need to communicate, I will use queue or database to complete it. But recently, when I write some codes of multithreading and multiprocessing, I found that if they need ...
Added by Rokboy on Fri, 20 Mar 2020 17:02:01 +0200
Scrapy Crawler Framework
1. Scrapy Crawler Framework
1. Scrapy is not a function library, but a crawler framework
A crawler framework is a collection of software structures and functional components that implement the crawler function
The crawler framework is a semi-finished product that helps users achieve professional web crawling
2.'5+2'structure
(1) Engine (no use ...
Added by cpjok on Thu, 19 Mar 2020 06:55:57 +0200
About PHP + jQuery UI drag floating layer to sort and save to database instance
The PHP + jQuery UI implements the drag floating layer sorting layout and saves the dragged floating layer position sorting results to the database instance.
First, jQuery library and jquery-ui.min.js are introduced, then a drag loading image is placed, and multiple module drag layers are read from the database. Modules and orderlist are used ...
Added by Cerebral Cow on Wed, 18 Mar 2020 16:29:18 +0200
[Spring Boot] Mybatis Plus 3.X condition query
[introduction]
I wrote a blog before< [Spring Boot] Mybatis Plus 2.X condition query >, we know that the query methods of Mybatis Plus 2.X and 3.X are not the same. This blog will summarize the application of various query methods of 3.X.
[example]
Take the query of article table as an example to ...
Added by zampu on Tue, 17 Mar 2020 10:32:01 +0200
Flink processes business data in the database - associating primary and secondary tables
Article Directory
1. Requirements
1. Requirement Description
2. Data preparation
2. Analysis
3. Technical Points
4. Join Architecture
5. Tool Class and Standard Class
1. FlinkUtilsV2 Get Tool Class for KafkaSource
2. OrderMainBean Order Master Table Class
3. OrderDetailBean Order Detail Table Clas ...
Added by ThE_eNd on Tue, 17 Mar 2020 03:35:31 +0200
Qlik Sense - automatically extract source DB tables / views based on configured records
Scene description
To form Qlik automatic sampling.
Qlik is required to automatically go to the source database to obtain data according to a configuration table (excel table) and store it as a qvd file. Data should support incremental mode (in fact, ETL work: obtain isomorphic table from source dat ...
Added by Darkwoods on Mon, 16 Mar 2020 11:33:51 +0200