this is not about ram, it's about memory that system allow to application use. Hi-end devices allow around 24MB, low-end usually around 16. Locus itself take around 10MB, so there usually do not remain a lot of space for huge operations ... I really suggest separate import to few categories. I unfortunately cannot help here