Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThat does look more Rubyish! I had only really thought about that after I posted the question - the fact that "lines" aren't really set by anything other than "the space between 'new line' characters" (or rather before and after). Which would mean that They all have to be parsed for that character anyway. I guess if I had a general idea of the space preceding the required lines, in bits/bytes/whatever, I could jump that area and then start parsing line by line, but for the time I'll accept that it works pretty well as is. Or as will be with a nicer looking line like your own! Thank you.
      singulars
    2. COActually, you _could_ make use of `seek` if the lines contained some kind of information related to their position in file (such as line numbers or sorted timestamps). Then you could pull some variant of binary search. You can open another question if that would help in your particular case.
      singulars
    3. COThis does lead to some scalability concerns though. If the file has several million lines, its going to be read into memory completely before you can `drop`. That could be slow and make the machine be unresponsive as its loading the data, or fill all available memory if the lines are long, causing paging. For a safer approach with a text file you're better off reading them a line at a time, skipping them until you reach the ones you want, then capture only the needed lines.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload