The last time I posted my blog a week ago, the problem I mentioned last time has been solved. The problem is that in the data storage code written in QT, there is a container in the Data loop, I forgot to clear myself, so a large amount of duplicate data exists in the data storage, resulting in a huge database and a very slow query. Now I am testing to store about 1 million rows of data in an hour, this storage volume is efficient for data query.
From the bug in this code, we can see that we write a program carelessly. In many cases, we do not check it after writing the Code. In the future, we should check whether the pointer has been added for judgment and then use it again, in a loop, the container class member variables have wood and clear each cycle. These are valuable experiences left behind by the project. We recommend that you read the C ++ programming specifications in the near future, especially for pointers, many pointers in your code are relatively casual and can be called without judgment. This can easily cause program crash and the new pointer must be deleted, in the future, if vs2008 is used as a project, it is best to use the smart pointer provided by the boost library for security.
This project has finally come to an end, and this weekend has been quite decadent. It may be because of the lack of a specific learning plan, and I don't know what to do next. There are still many books to watch, there are still a lot of things to learn, so you should develop a detailed learning plan for yourself to complete a certain amount of learning tasks every day. This can ensure that every day is full and meaningful, you can also make yourself not so boring. It's so interesting to brush Weibo and visit everyone. You should make a summary and sort out what you will learn in the future in your blog to deepen your understanding and memory, this time I wrote so much and continue to work hard!