@someone in the page

WBOY
Release: 2016-06-27 13:18:10
Original
1282 people have browsed it

@xxx Regularly obtains the name and queries the database in the background to generate records... Or is there another way to write it? Find out. Suddenly curious.
I saw that there is as.js on the front end but I didn’t look at the source code...


Reply to discussion (solution)

Querying is always necessary, right?

I can’t think of anything other than what you think.

When the record containing @ is stored, it is stored normally. Then when it is retrieved for the first time, it is removed and matched regularly. Then the database obtains the @ user information, generates a record containing the id, and then caches this (Instead of the original record content of the database), so that you don’t need to fetch it from the user database next time.

In addition to use? Is there anything else?

In addition to use? Is there anything else

I guess... ...what is the word "sage" ?

?

Quoting the reply from ci1699 on the 4th floor: In addition to using it? Is there anything else?

I rub... ...Expert this What is the word ?

?. . GHMJ regular. . .

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template