C-ask a big file statistics question about massive data

Source: Internet
Author: User
There is a single row in a large file over 20 GB (csv format, separated by commas) the order information mainly includes the user id, the merchant id, and the order id. you need to find "every merchant", "cumulative payment user per day", and "number of new payment users per day". PS: it is best to paste the code. it is best to use C or C ++ and php, another reason is that the memory is not very large. I need to consider the memory reason. the uid of "accumulative payment users" and "new payment users" that I need to find is the final display effect that needs to be removed from duplicates. it is similar to this! [Image description] (img. ask. csdn. netupload20... cphpc ++ multi-dimensional query of massive files

There is a single row in a large file over 20 GB (csv format, separated by commas) the order information mainly includes the user id, the merchant id, and the order id. you need to find "every merchant", "cumulative payment user per day", and "number of new payment users per day"
PS:
It is best to paste the code,
It is best to use C, C ++, and php,
Another reason is that memory is not very large.
The uid of the "accumulative payment user" and "New Payment user" that I need to find must be removed from duplicates.

The final display effect is similar to this

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.