Den 2012-02-13 21:16 skrev nathanelrick såhär: > > Hello, > > I need to create a table where every days i will add around 2 000 000 > rows, to delete them every night (after compiling them to produce some > statistics). so the table will receive around 60 000 000 rows every month > > I m afraid that this will cost a lot of IO on the hard drive and will > slow all the systems ... also i m not sure that after i delete the > row, the space will be mark as free for futur insert ... is it > possible to keep this table in memory ? if not what i can do ? > First, stop worrying about the disk space being wasted. That's a problem for Access and similar. "Real" database managers don't suffer from that kind of problem. Period
Based on my experience, it is usually a lot faster to drop a table and recreate it, than to delete all the records. I'd recommend you use that approach to clean it out each night. Kjell -- -------------------------------------- Kjell Rilbe DataDIA AB E-post: [email protected] Telefon: 08-761 06 55 Mobil: 0733-44 24 64 [Non-text portions of this message have been removed] ------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Visit http://www.firebirdsql.org and click the Resources item on the main (top) menu. Try Knowledgebase and FAQ links ! Also search the knowledgebases at http://www.ibphoenix.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
