Results 1 to 11 of 11

Thread: how to manipulate a very large data using QT?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to manipulate a very large data using QT?

    Thanks a lot Chris...


    Quote Originally Posted by ChrisW67 View Post
    • Is that one 1 gb blob of text or 100 million little bits of text? (War and Peace vs. a phone book?)
    • How many "tables" of 1GB?
    • What do you need to be able to do with that text?
    • How quickly?
    • If there are some kind of "records" in here how do they relate to each other?
    • Does the data need to be shared between multiple users concurrently? How many?
    • Is the data read-only or updatable?
    • Does the data need to be controlled/protected by some sort of permissions system?
    • Do you need to be able to distribute the database data or processing load between machines or sites?


    .
    • Its 100 million lines all with same length
    • Hundreds of tables around 1gb
    • I should able to search in those tables(basically)
    • Speed should be reliable
    • No concurancy
    • All tables are read only
    • Not distributed system...just for single stand alone machine

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to manipulate a very large data using QT?

    If you have text files, why don't you use those files directly? What's the benefit of moving the data into separate storage? What kind of "search" do you have in mind? Words? Patterns? Records? Is the content in each file ordered somehow?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to manipulate a very large data using QT?

    Quote Originally Posted by wysota View Post
    If you have text files, why don't you use those files directly? What's the benefit of moving the data into separate storage? What kind of "search" do you have in mind? Words? Patterns? Records? Is the content in each file ordered somehow?
    my target was to load a 1gb text file in table widget and to perform searching operation on those files, but i was unable to perform that operation.
    So i thought, if i can store it in a database i can show part of the file(or the user requested part ) in the table view..
    Is the way i have choosen is wrong? is there any alternative to perform this?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to manipulate a very large data using QT?

    Quote Originally Posted by aurora View Post
    my target was to load a 1gb text file in table widget and to perform searching operation on those files, but i was unable to perform that operation.
    It was always a stretch to get a 1GB collection of lines into memory for a single widget on a 32-bit machine. Even less likely if there are "Hundreds of tables around 1gb," you tried to load.
    So i thought, if i can store it in a database i can show part of the file(or the user requested part ) in the table view..
    Possibly, we cannot tell. You still haven't told us anything about the structure of the file content, how the user might search it, what constitutes a "part of the file", etc. It might be something like:
    • Open file, seek to a byte offset, read a 4kB "page", and display that, or
    • Open file, seek to a particular line number, read a specified number of lines, and display that, or
    • Open file, select all paragraphs matching a pattern, and display those, or
    • Open file, select all lines matching a pattern, and display 5 lines either side of each, those, or
    • Open file, select all lines matching a pattern, interpret the data in the lines to compute whether to display them, and display those, or
    • Open file, select all lines matching a pattern, find a set of related lines, and display those,
    • Open a file, open another, find the common/different lines, and display those, or...

    I don't know how you expect us to know.
    Is the way i have choosen is wrong? is there any alternative to perform this?
    It is neither right nor wrong. There are plenty of options but only you have the information on which to assess suitability.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to manipulate a very large data using QT?

    Quote Originally Posted by aurora View Post
    So i thought, if i can store it in a database i can show part of the file(or the user requested part ) in the table view..
    I fail to see what a database would help you with here. A text file is also a sort of a database. If you want to visualize part of the file then do just that -- load the part you need and display whatever you need.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 23rd September 2010, 05:45
  2. QPrinter, QPainter, and Large Amounts of Data
    By millsks in forum Qt Programming
    Replies: 0
    Last Post: 17th March 2009, 18:26
  3. Replot large wav file data
    By Sachtech in forum Qwt
    Replies: 1
    Last Post: 6th January 2009, 09:12
  4. QWT and large amounts of data
    By ko9 in forum Qwt
    Replies: 1
    Last Post: 17th October 2007, 05:28
  5. fast writing of large amounts of data to files
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2007, 16:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.