Tag:hash

  • The use of Yii redis hash

    Time:2021-3-13

      The hash of redis allows users to store multiple key value pairs in a redis key. Here are some common commands and their use in Yii. HMGET HMGET:HMGET key-name key [key …]Gets the value of one or more keys from the hash. HMSET HMSET:HMSET key-name key name [key name …]Set values for one or […]

  • Hash join: a new feature of MySQL 8.0

    Time:2020-10-11

    MySQL development team officially released MySQL 8.0.18 GA on October 14, 2019, bringing some new features and enhanced functions. One of the most striking is that the multi table join query supports hash join. Let’s first look at the official description: MySQL implements hash join for inner join query. For example, starting from MySQL 8.0.18, […]

  • MySQL 8.0.18 hash join test (recommended)

    Time:2020-10-10

    Hash Join Hash join does not require any index to execute and is more efficient than the current block nested loop algorithm in most cases. The following is an example code to introduce MySQL 8.0.18 hash join test. The specific contents are as follows: CREATE TABLE COLUMNS_hj as select * from information_schema.`COLUMNS`; INSERT INTO COLUMNS […]

  • MySQL 8.0.18 hash join does not support left / right join connection

    Time:2020-9-19

    In MySQL 8.0.18, a new function of hash join has been added, which is applicable to the fields that have not been indexed to do equivalent Association query. In previous versions, if the joined fields were not indexed, the query speed would be very slow, and the optimizer would use BNL (block nesting) algorithm. Hash […]

  • Analysis of two simple sorting methods in Java HashMap

    Time:2020-9-11

    This article mainly introduces the Java HashMap two simple sorting method analysis, the article through the example code introduction is very detailed, to everybody’s study or the work has the certain reference study value, the need friend may refer to The storage of HashMap is not sequential, but implemented according to the hashcode of key […]

  • Blockstack-9: blockstack architecture

    Time:2020-6-24

    Original link: https://medium.com/coinmonks/blockstack-a-decentralized-naming-and-storage-system-using-blockchain-445ff60190f7 Part I: blockstack’s 4-tier architecture Blockstack’s 4-tier architecture: first floor:Blockchains like bitcoin store an authoritative global consensus on the state of the system. Layer 2 – Virtual Chain:A blockchain independent layer that accepts input from the blockchain and can create any type of state machine. For example, a DNS state machine can […]

  • Learn from blockchain-1-transaction|block|pow by building blockchain

    Time:2020-6-6

    Original link: https://medium.com/@vanflymen/learn –blockchains-by-building-one-117428612f46 Transaction Block proof of work You’re here because, like me, you’re excited about the rise of cryptocurrencies. You want to know how blockchains work – the basic technology behind them. But understanding blockchain is not easy – at least not for me. I had a hard time browsing dense videos, learning […]

  • Combined mining specification

    Time:2020-5-31

    Combined mining Aux assist Note: this standard is used by namecoin, but the new merge mining data may propose a new BiP to replace it, using something based on p2pool merge mining. content term Supporting workload proof block Merkle branch Combined mining coinbase Artificial Hawthorn example note term Auxiliary Proof-of-Work (POW) a.k.“AuxPOW”。 This is how […]

  • Explain the command use of MD5 code and SHA1 code of the check file in Linux

    Time:2020-4-30

    md5sumUsage: md5sum [options]… [file]Display or check the MD5 (128-bit) check sum.If there is no file option or “-” at the file, it is read from standard input. – B, — binary read in binary mode– C, — check read the check value of MD5 from the file and check it– t, — text read in […]

  • Introduction to arrays and hash in Ruby

    Time:2020-3-12

    Today we are learning array and hash. Array can be used in many programming languages. Array: Array is a kind of container for storing data. In ruby, the data stored in array can be any type of data. Unlike Java, array is a structure for storing the same type of data. 1. How to define […]

  • Ruby string, condition, loop, array, hash, class basic operation notes

    Time:2020-3-11

    1、 String operation String interpolation 1. {}: any valid Ruby code placed in {} will be evaluated and replaced with the evaluation result and inserted into the original location 2. Difference between single quotation mark and double quotation mark: Double quotation marks allow character escape, single quotation marks do not allow escape. What characters are […]

  • Use password? Hash to encrypt the password

    Time:2020-3-2

    Use password? Hash to encrypt the password In PHP, the way we usually encrypt passwords was the md5() function Password? Hash After PHP 5.5, we introduce a method to encrypt the password, which is called “password” hash Password_hash() uses a one-way hash algorithm of sufficient strength to create a hash of the password. Password_hash() is […]