Hi, Huynh,

Thanks for your interest in FastBit.

The exception bad_alloc typically indicates a memory allocation has
failed -- you are likely running out of memory.

In your example, ibis::table::select creates an *in-memory* data
table, which might be taking more memory than you have expected.  You
probably want to write the content of this data partition out to disk,
free the in-memory data partition, and load the data partition from
disk before doing anything else.

If you are interested in making a copy of your existing data, you can
copy the directories with your familiar commands.  The only thing to
note is to edit the -part.txt files to give the new data sets new
names.  Alternatively, take a look at
<http://lbl.gov/~kwu/fastbit/doc/dataLoading.html> or exploring the
function ibis::part::append.

Good luck,

John


On 3/19/12 2:23 AM, Huynh Tan Phuc wrote:
> hi everybody!
> I want join table result from any part equal struct
> ibis::table *tbls=ibis::table::create(strPart);
> ibis::table *ptbsrs = tbls->select(sSelect,sWhere);
> I used tbls->addPartition(strPart); and select for all part but it's
> bad_alloc. all part contains 40 milion record
> help me please!!!
> 
> 
> 
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to