IRC log of #zope for Friday, 2012-05-04

*** thetet has joined #zope00:00
*** m8 has quit IRC00:33
*** supton_ has joined #zope00:43
*** supton has quit IRC00:46
*** ccomb has quit IRC00:53
*** dcarmean has left #zope00:53
*** thetet has quit IRC01:21
*** menesis has quit IRC01:35
*** mr_jolly has joined #zope01:38
*** mr_jolly has quit IRC01:43
*** J1m has quit IRC02:01
*** supton has joined #zope02:06
*** thetet has joined #zope02:13
*** sp0cksbeard has quit IRC02:23
*** alga has quit IRC02:51
*** thetet has quit IRC02:52
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** thetet has joined #zope03:03
*** tiwula has quit IRC03:10
*** runyaga has joined #zope03:13
*** runyaga has quit IRC03:13
*** runyaga has joined #zope03:13
*** mcdonc has quit IRC03:36
*** mcdonc has joined #zope03:36
*** thetet has quit IRC03:59
*** jan_s has quit IRC04:10
*** TomBlockley has joined #zope04:18
*** daMaestro has left #zope04:20
*** Spanktar has quit IRC04:23
*** mcdonc has quit IRC04:38
*** tiwula has joined #zope04:49
*** mcdonc has joined #zope04:57
*** jham has quit IRC05:08
*** jham has joined #zope05:08
*** jham has joined #zope05:08
*** nande has quit IRC06:06
*** dayne has joined #zope06:36
*** supton has quit IRC07:13
*** runyaga has quit IRC07:25
*** superbofh has quit IRC07:49
*** tiwula has quit IRC08:24
*** agroszer has joined #zope08:30
*** zagy has joined #zope08:56
*** tisto has joined #zope09:00
*** __mac__ has joined #zope09:40
*** running_clam has joined #zope09:42
*** running_clam has left #zope09:42
*** running_clam has joined #zope09:44
*** running_clam has left #zope09:44
*** running_clam has joined #zope09:46
*** running_clam has left #zope09:46
*** yvl has joined #zope09:49
*** thevishy has quit IRC10:02
*** thevishy has joined #zope10:02
*** mr_jolly has joined #zope10:21
*** menesis has joined #zope10:30
*** eperez has joined #zope10:36
*** ccomb has joined #zope10:43
*** alga has joined #zope10:50
*** alga has quit IRC10:52
*** alga has joined #zope10:52
*** avoinea has joined #zope10:54
*** alga has quit IRC10:55
*** alga has joined #zope10:55
*** ganeshu has joined #zope10:59
*** ganeshu has quit IRC11:04
*** mitchell`off is now known as mitchell`11:17
*** running_clam has joined #zope11:29
*** running_clam has left #zope11:30
*** m8 has joined #zope11:38
*** m8 has joined #zope11:38
*** maurits has joined #zope12:22
*** maurits has left #zope12:22
*** ganeshu has joined #zope12:23
*** mr_jolly has quit IRC12:27
ganeshuhi.. i want to store my text file contents to zodb, total text files' size is 1 MB, but the ZODB .fs file size is 10MB.....how to avoid this?12:38
*** ganeshu is now known as ganesh_ariveguru12:40
ganesh_ariveguruhi.. i want to store my text file contents to zodb, total text files' size is 1 MB, but the ZODB .fs file size is 10MB.....how to avoid this?12:41
*** MrTango has joined #zope12:53
*** menesis has quit IRC12:55
bigkevmcdganesh_ariveguru: you're not really providing enough information12:55
bigkevmcdganesh_ariveguru: how are you storing the text file?  are you indexing it?12:55
*** teix has joined #zope12:55
bigkevmcdganesh_ariveguru: are you packing the database?12:55
bigkevmcdganesh_ariveguru: FWIW, I just uploaded a 992k file into an otherwise empty Data.fs file, and it's not 1.1M12:57
bigkevmcds/it's not/it's now/12:57
*** MrTango has quit IRC12:57
ganesh_ariveguruno...i am not directly storing text files....12:58
ganesh_arivegurui am extracting content from text files12:58
ganesh_ariveguruand storing on it12:59
*** MrTango has joined #zope13:02
ganesh_ariveguruhi...bigkevmcd13:26
ganesh_arivegurupls tell some solutions13:27
ganesh_arivegurubigkevmcd: while appending data to db, it's size is growing rapidly13:27
bigkevmcdganesh_ariveguru: that makes sense13:28
bigkevmcdganesh_ariveguru: you're adding objects to the database13:28
bigkevmcdganesh_ariveguru: if you have older, unreferenced objects, then packing will remove them13:28
ganesh_arivegurubigkevmcd: but instead appending , if i stored all objects in one shot....db size is very less13:29
bigkevmcdganesh_ariveguru: the Zope db stores a history of transactions13:29
bigkevmcdganesh_ariveguru: packing will remove what it can13:29
ganesh_ariveguruhow to do packing...when to do packing13:29
*** zagy has quit IRC13:30
*** __mac__ has quit IRC13:30
ganesh_arivegurubigkevmcd:packing before each transactions?13:30
bigkevmcdganesh_ariveguru: no, don't pack before each transaction13:30
bigkevmcdganesh_ariveguru: pack daily or something13:30
bigkevmcdganesh_ariveguru: that's what most folk do13:31
ganesh_arivegurumy transaction is done by a for loop.....for each object i'll append to db, and commit the transaction....13:31
ganesh_ariveguruso it is growing and having history for each object13:32
ganesh_ariveguruso...how i can get rid of it...13:32
bigkevmcdganesh_ariveguru: not necessarily13:32
bigkevmcdganesh_ariveguru: only if the objects are changing13:32
bigkevmcdganesh_ariveguru: there's a subtle difference between changing objects, and adding objects13:33
ganesh_arivegurusee.....this will be my one object in db{13:35
ganesh_ariveguru"question_papers" : [{13:35
ganesh_ariveguru"q_id " : "1",13:35
ganesh_ariveguru"question" : "some text"13:35
ganesh_ariveguru}13:35
bigkevmcdwhooah13:35
ganesh_ariveguru]13:35
ganesh_ariveguru}13:35
bigkevmcdpastebin13:35
ganesh_arivegurui question papers' list i will add, like this many elements{13:36
ganesh_ariveguru"q_id " : "2",13:36
ganesh_ariveguru"question" : "some text"13:37
ganesh_ariveguru}13:37
bigkevmcdganesh_ariveguru: please use http://paste.lisp.org/new/zope to paste multiline things13:37
*** tisto_ has joined #zope13:37
ganesh_arivegurubigkevmcd you got what am asking?13:40
bigkevmcdganesh_ariveguru: yes13:40
*** tisto has quit IRC13:41
bigkevmcdganesh_ariveguru: and you're changing the top-level object, so it will maintain the history in each transaction13:41
ganesh_ariveguruso how to delete the history?13:41
bigkevmcdpacking!13:42
bigkevmcd<ganesh_ariveguru> i have written my own ZODB class there is no pack method13:42
bigkevmcdI doubt that's true13:42
bigkevmcdbut, if it is, you'll need to write your own13:42
bigkevmcdI suspect you're using the standard ZODB class13:42
bigkevmcdand, in that case, you can call pack on it13:42
ganesh_ariveguruwait i will post my ZOdb class13:43
ganesh_arivegurubigkevmcd:http://paste.lisp.org/new/zope...how to select channel in this....\13:44
bigkevmcdganesh_ariveguru: select None and paste the URL13:44
ganesh_ariveguruhttp://paste.lisp.org/+2RRT13:46
ganesh_arivegurubigkevmcd: i have pasted my zodb class there....13:47
bigkevmcdsure13:47
bigkevmcdso, your pack method doesn't need that first line, but you're calling pack on the db, which is correct13:47
ganesh_ariveguruyou told me based on my zodb class....how to write packing script....pls13:48
bigkevmcdcall pack13:50
bigkevmcdit's as simple as that13:50
ganesh_ariveguruya...when to call13:50
bigkevmcdat 18:01:33UTC13:51
ganesh_ariveguruafter finishing all transactions..?13:51
bigkevmcdon alternate days, if they have a e in them13:51
ganesh_arivegurunice comedy...13:51
ganesh_arivegurua e, what's tha?13:51
ganesh_ariveguruwhat's that?13:51
bigkevmcdbasically, call when you need to13:53
bigkevmcdif you really want to call after every transaction, I think that's stupid, but feel free13:53
bigkevmcdits your application13:53
*** do3cc has joined #zope13:55
ganesh_arivegurubigkevmcd: thanks....i will try13:55
*** ccomb has quit IRC13:55
bigkevmcdganesh_ariveguru: what is it you're worried about?13:56
ganesh_arivegurunot really...but i have to find solution for tha...so...13:56
*** thetet has joined #zope13:57
ganesh_arivegurubigkevmcd:how long u r , using zodb?13:57
bigkevmcdI've been using Zope off and on for between 13 and 14 years...13:57
*** fredvd has joined #zope14:01
ganesh_arivegurubigkevmcd:oh...really nice... i am totally new to coding world, last year i finished my studies, and now working in python14:01
*** goschtl has joined #zope14:04
*** tisto_ is now known as tisto|away14:04
*** zagy has joined #zope14:04
ganesh_arivegurubigkevmcd: thank, i packed my db, now in that directroy, data.fs, data.fs.old files are there, i have to keep data.fs.old14:07
ganesh_ariveguru?14:07
bigkevmcdno, not unless you want to14:07
*** __mac__ has joined #zope14:08
bigkevmcdganesh_ariveguru: bear in mind that backing up a live zodb is fraught, so backup a .old might be desirable14:08
ganesh_ariveguruso keeping that old file also will cause the application size....so can i delete this...? how?14:11
*** fredvd has quit IRC14:16
*** fredvd has joined #zope14:19
*** menesis has joined #zope14:21
ganesh_arivegurubigkevmcd:so keeping that old file also will cause the application size....so can i delete this...? how?14:21
*** yvl has quit IRC14:22
bigkevmcdganesh_ariveguru: eh?14:28
bigkevmcdganesh_ariveguru: why do you think that?14:28
ganesh_ariveguruconsider if one person is using my application in his mobile....he will add new notes or some data to db, so after packing, .fs file will be there with reduced size, but .fs.old wil be with big size. ... so it will cause the application size, so i want to delete that...14:31
*** thevishy has quit IRC14:32
*** dayne has quit IRC14:38
*** ganesh_ariveguru has left #zope14:48
*** fredvd has quit IRC15:00
*** ccomb has joined #zope15:00
*** menesis has quit IRC15:18
*** menesis has joined #zope15:19
*** goschtl has quit IRC15:22
*** __mac__ has quit IRC15:36
*** __mac__ has joined #zope15:36
*** zagy has quit IRC15:37
*** zagy has joined #zope15:45
*** tisto|away is now known as tisto15:48
*** ericof has quit IRC15:53
*** J1m has joined #zope15:57
*** eperez has quit IRC16:08
*** sp0cksbeard has joined #zope16:12
*** ccomb1 has joined #zope16:20
*** ccomb1 has quit IRC16:20
*** ccomb has quit IRC16:21
*** J1m has quit IRC16:24
*** zenwryly has quit IRC16:28
*** zenwryly has joined #zope16:28
*** ericof has joined #zope16:30
*** ccomb has joined #zope16:36
*** supton has joined #zope16:36
*** J1m has joined #zope16:49
*** supton has quit IRC17:29
*** zagy has quit IRC17:34
*** agroszer has quit IRC17:41
*** J1m has quit IRC17:43
*** J1m has joined #zope17:49
*** tiwula has joined #zope17:50
*** __mac__ has quit IRC17:59
*** daMaestro has joined #zope18:00
*** supton has joined #zope18:04
*** jakke has left #zope18:05
*** tisto has quit IRC18:17
*** ccomb has quit IRC18:17
*** giacomos has joined #zope18:27
*** avoinea has quit IRC18:28
*** dTordable has joined #zope18:42
dTordableHello, anyone.18:43
*** nande has joined #zope19:03
*** supton has quit IRC19:13
*** supton has joined #zope19:15
*** goschtl has joined #zope19:17
*** Spanktar has joined #zope19:30
*** dTordable has quit IRC19:36
*** goschtl has quit IRC19:44
*** runyaga has joined #zope19:51
*** runyaga has quit IRC19:51
*** runyaga has joined #zope19:51
*** benji has quit IRC20:01
*** menesis has quit IRC20:13
*** runyaga is now known as run|away20:22
*** bigkevmcd has quit IRC20:28
*** ericof has quit IRC20:30
*** goschtl has joined #zope20:38
koshgreetings lifeforms20:40
*** thetet has quit IRC20:55
*** giacomos has quit IRC21:14
*** benji has joined #zope21:14
*** supton_ has joined #zope21:37
*** supton has quit IRC21:41
*** ccomb has joined #zope21:44
*** ccomb has quit IRC21:51
*** mcdonc has quit IRC22:03
*** mcdonc has joined #zope22:03
*** goschtl has left #zope22:15
*** teix has quit IRC22:28
*** ericof has joined #zope22:36
*** ccomb has joined #zope23:03
*** rbanffy has joined #zope23:38
*** mcdonc has quit IRC23:39
*** mcdonc has joined #zope23:43

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!