[firebird-support] Fast massive delete with complex criteria

2011-12-27 Thread Josef Kokeš
Hi! I find myself in a situation where I need to delete large amount of data from a huge (comparably) table, with relatively complex criteria on what stays and what gets deleted: - The table in question has about 6 million rows. - The rows contain a mix of integer, timestamp and blob columns, w

Re: [firebird-support] Fast massive delete with complex criteria

2011-12-27 Thread Milan Babuskov
Josef Kokeš wrote: > 1) Am I overlooking some possible fast approach? You could create a view named the same as your table and use it to "mask" the table for the rest of application(s). This would save you from inserting records twice. Let's assume your table is named DATA, these would be the s

Re: [firebird-support] Fast massive delete with complex criteria

2011-12-27 Thread Josef Kokeš
> I find myself in a situation where I need to delete large amount of data > from a huge (comparably) table, with relatively complex criteria on what > stays and what gets deleted: > > - The table in question has about 6 million rows. > - The rows contain a mix of integer, timestamp and blob column