workspace stringclasses 1
value | channel stringclasses 1
value | sentences stringlengths 1 3.93k | ts stringlengths 26 26 | user stringlengths 2 11 | sentence_id stringlengths 44 53 | timestamp float64 1.5B 1.56B | __index_level_0__ int64 0 106k |
|---|---|---|---|---|---|---|---|
pythondev | help | Anyone know of a good resource for examples of how to add a --debug option to a script so it will print out verbosely what it is doing? | 2018-02-28T15:30:37.000520 | Daron | pythondev_help_Daron_2018-02-28T15:30:37.000520 | 1,519,831,837.00052 | 36,624 |
pythondev | help | are you already using argparse or some other CLI argument parsing lib? | 2018-02-28T15:36:37.000165 | Floy | pythondev_help_Floy_2018-02-28T15:36:37.000165 | 1,519,832,197.000165 | 36,625 |
pythondev | help | So the argparse I have, just how do i impliment in my code to not normally print that info to the screen but if I throw the debug arg to post all that code | 2018-02-28T15:37:43.000653 | Daron | pythondev_help_Daron_2018-02-28T15:37:43.000653 | 1,519,832,263.000653 | 36,626 |
pythondev | help | I would hate to have to add a ton of if x = 'debug': then print | 2018-02-28T15:38:20.000220 | Daron | pythondev_help_Daron_2018-02-28T15:38:20.000220 | 1,519,832,300.00022 | 36,627 |
pythondev | help | Was thinking there might be a library or something for it. | 2018-02-28T15:38:34.000596 | Daron | pythondev_help_Daron_2018-02-28T15:38:34.000596 | 1,519,832,314.000596 | 36,628 |
pythondev | help | check this out from the django project | 2018-02-28T15:39:46.000245 | Floy | pythondev_help_Floy_2018-02-28T15:39:46.000245 | 1,519,832,386.000245 | 36,629 |
pythondev | help | <https://github.com/django/django/blob/master/django/core/management/commands/migrate.py#L136> | 2018-02-28T15:39:46.000712 | Floy | pythondev_help_Floy_2018-02-28T15:39:46.000712 | 1,519,832,386.000712 | 36,630 |
pythondev | help | note the `self.verbosity`, where its set in the cli as an option `--verbosity N` and such | 2018-02-28T15:40:13.000132 | Floy | pythondev_help_Floy_2018-02-28T15:40:13.000132 | 1,519,832,413.000132 | 36,631 |
pythondev | help | So yeah need the if statements. Was hoping to have something that would just tell python if verbosity/debug print variables and returns to stdout as well. | 2018-02-28T15:41:41.000162 | Daron | pythondev_help_Daron_2018-02-28T15:41:41.000162 | 1,519,832,501.000162 | 36,632 |
pythondev | help | Great example thanks | 2018-02-28T15:43:51.000443 | Daron | pythondev_help_Daron_2018-02-28T15:43:51.000443 | 1,519,832,631.000443 | 36,633 |
pythondev | help | well, you can do that with logging | 2018-02-28T15:45:51.000062 | Floy | pythondev_help_Floy_2018-02-28T15:45:51.000062 | 1,519,832,751.000062 | 36,634 |
pythondev | help | if you already have it configured | 2018-02-28T15:46:05.000384 | Floy | pythondev_help_Floy_2018-02-28T15:46:05.000384 | 1,519,832,765.000384 | 36,635 |
pythondev | help | so when the program starts up, set the appropriate log level and go from there | 2018-02-28T15:46:20.000138 | Floy | pythondev_help_Floy_2018-02-28T15:46:20.000138 | 1,519,832,780.000138 | 36,636 |
pythondev | help | but for a script, that might be overkill | 2018-02-28T15:46:35.000351 | Floy | pythondev_help_Floy_2018-02-28T15:46:35.000351 | 1,519,832,795.000351 | 36,637 |
pythondev | help | Oh did not think of that just have it output my logging to both screen and log file. | 2018-02-28T15:59:01.000205 | Daron | pythondev_help_Daron_2018-02-28T15:59:01.000205 | 1,519,833,541.000205 | 36,638 |
pythondev | help | you can do that easily | 2018-02-28T15:59:25.000613 | Floy | pythondev_help_Floy_2018-02-28T15:59:25.000613 | 1,519,833,565.000613 | 36,639 |
pythondev | help | Absolutely thank you so much. Life is much easier. | 2018-02-28T16:00:58.000596 | Daron | pythondev_help_Daron_2018-02-28T16:00:58.000596 | 1,519,833,658.000596 | 36,640 |
pythondev | help | man the company that I work want it and they don't want to change the requirement | 2018-02-28T16:16:28.000378 | Logan | pythondev_help_Logan_2018-02-28T16:16:28.000378 | 1,519,834,588.000378 | 36,641 |
pythondev | help | I’m a bit confused - why are you stuck on anything if you are using Docker, and why would your Jenkins server be using anything different? The whole point of Docker is you can define your dependencies and run them the same anywhere | 2018-02-28T18:01:02.000625 | Zack | pythondev_help_Zack_2018-02-28T18:01:02.000625 | 1,519,840,862.000625 | 36,642 |
pythondev | help | `cmd = "curl -X PUT <http://127.0.0.1:8080/endpoint> -d '{'name': " + str(foo) + " , 'key': " + str(yo) + ", 'url': " + str(bar) + "}'"` can anyone help with how i can add singe ` inside the variables in this curl request. For example i want `str(foo)` to inside single ticks like if foo = 'hello' if id like to have... | 2018-02-28T18:06:22.000375 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:06:22.000375 | 1,519,841,182.000375 | 36,643 |
pythondev | help | single quote * | 2018-02-28T18:06:57.000153 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:06:57.000153 | 1,519,841,217.000153 | 36,644 |
pythondev | help | im not interested in requests, i need to execute that command after ssh into a machine, via python | 2018-02-28T18:07:47.000159 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:07:47.000159 | 1,519,841,267.000159 | 36,645 |
pythondev | help | nvm i got it | 2018-02-28T18:11:45.000432 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:11:45.000432 | 1,519,841,505.000432 | 36,646 |
pythondev | help | what was the fix? escape character? | 2018-02-28T18:12:55.000562 | Elisha | pythondev_help_Elisha_2018-02-28T18:12:55.000562 | 1,519,841,575.000562 | 36,647 |
pythondev | help | `cmd = "curl -X PUT <http://127.0.0.1:8080/endpoint> -d '{'name': " + "'" + str(foo)+ "'" + " , 'key': " + "'" + str(yo)+ "'" + ", 'url': " + "'" + str(bar)+ "'" + "}'"` | 2018-02-28T18:16:06.000017 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:16:06.000017 | 1,519,841,766.000017 | 36,648 |
pythondev | help | fixed it with this, which is super ugly | 2018-02-28T18:16:15.000385 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:16:15.000385 | 1,519,841,775.000385 | 36,649 |
pythondev | help | id like to use .fromat but its not playing well | 2018-02-28T18:16:26.000219 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:16:26.000219 | 1,519,841,786.000219 | 36,650 |
pythondev | help | <@Elisha> | 2018-02-28T18:16:39.000389 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:16:39.000389 | 1,519,841,799.000389 | 36,651 |
pythondev | help | do you have to do `'name': " + "'"` instead of `'name': '"`? | 2018-02-28T18:18:07.000224 | Elisha | pythondev_help_Elisha_2018-02-28T18:18:07.000224 | 1,519,841,887.000224 | 36,652 |
pythondev | help | but now i dont think curl like the double quotes of a string in the outside layesrs ```In [43]: cmd
Out[43]: "curl -X PUT <http://127.0.0.1:8080/endpoint> -d '{'name': 'hello' , 'key': '645gh', 'url': 'shit'}'"``` | 2018-02-28T18:18:41.000241 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:18:41.000241 | 1,519,841,921.000241 | 36,653 |
pythondev | help | I might need the output to be just `curl -X PUT <http://127.0.0.1:8080/endpoint> -d '{'name': 'hello' , 'key': '645gh', 'url': 'shit'}'` | 2018-02-28T18:19:01.000207 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:19:01.000207 | 1,519,841,941.000207 | 36,654 |
pythondev | help | without the double quotes | 2018-02-28T18:19:07.000336 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:19:07.000336 | 1,519,841,947.000336 | 36,655 |
pythondev | help | naw thats not it, nvm. body is wrong | 2018-02-28T18:25:25.000024 | Kelsey | pythondev_help_Kelsey_2018-02-28T18:25:25.000024 | 1,519,842,325.000024 | 36,656 |
pythondev | help | I am using python 3.6 on my laptop and am able to run a script fine, however my container running 3.5 is outputting a json error, any idea if that version difference really could be it?
```
Traceback (most recent call last):
File "cassandra_disk.py", line 25, in <module>
data = json.loads(jsonFile.content)
... | 2018-02-28T20:53:38.000274 | Lorrine | pythondev_help_Lorrine_2018-02-28T20:53:38.000274 | 1,519,851,218.000274 | 36,657 |
pythondev | help | ```json.loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
Deserialize s (a str, bytes or bytearray instance containing a JSON document) to a Python object using this conversion table.
The other arguments have the same meaning as ... | 2018-02-28T21:01:40.000111 | Monroe | pythondev_help_Monroe_2018-02-28T21:01:40.000111 | 1,519,851,700.000111 | 36,658 |
pythondev | help | Note the last line | 2018-02-28T21:01:48.000186 | Monroe | pythondev_help_Monroe_2018-02-28T21:01:48.000186 | 1,519,851,708.000186 | 36,659 |
pythondev | help | <@Lorrine> | 2018-02-28T21:02:04.000149 | Monroe | pythondev_help_Monroe_2018-02-28T21:02:04.000149 | 1,519,851,724.000149 | 36,660 |
pythondev | help | interesting. thank you | 2018-02-28T21:02:14.000139 | Lorrine | pythondev_help_Lorrine_2018-02-28T21:02:14.000139 | 1,519,851,734.000139 | 36,661 |
pythondev | help | TIL as well | 2018-02-28T21:02:14.000257 | Monroe | pythondev_help_Monroe_2018-02-28T21:02:14.000257 | 1,519,851,734.000257 | 36,662 |
pythondev | help | <@Monroe> :taco: for good find. TIL | 2018-02-28T21:03:10.000229 | Floy | pythondev_help_Floy_2018-02-28T21:03:10.000229 | 1,519,851,790.000229 | 36,663 |
pythondev | help | TIL, I guess upgrading to 3.6 would be a big convenience | 2018-02-28T21:03:12.000271 | Margert | pythondev_help_Margert_2018-02-28T21:03:12.000271 | 1,519,851,792.000271 | 36,664 |
pythondev | help | If I had to stick to python3.5 could I change it to data = jsonFile.json() assuming jsonFile was the requests.get that grabbed the file | 2018-02-28T21:57:16.000116 | Lorrine | pythondev_help_Lorrine_2018-02-28T21:57:16.000116 | 1,519,855,036.000116 | 36,665 |
pythondev | help | I’m looking for a way to implement logger for library (our private lib)
lib method:
```def my_helper():
<http://logger.info|logger.info>('doing helper')
```
other place using it
`api.app1`
```
my_helper()
```
`api.app2`
```
my_helper()
```
The thing is each app (app1, and app2) is using different log file (di... | 2018-02-28T22:48:47.000162 | Ben | pythondev_help_Ben_2018-02-28T22:48:47.000162 | 1,519,858,127.000162 | 36,666 |
pythondev | help | <@Ben>, first step is to read through docs on logger | 2018-02-28T23:17:01.000095 | Shaun | pythondev_help_Shaun_2018-02-28T23:17:01.000095 | 1,519,859,821.000095 | 36,667 |
pythondev | help | <https://docs.python.org/3/howto/logging-cookbook.html> | 2018-02-28T23:17:28.000064 | Shaun | pythondev_help_Shaun_2018-02-28T23:17:28.000064 | 1,519,859,848.000064 | 36,668 |
pythondev | help | then check out `logging.FileHandler` | 2018-02-28T23:17:58.000143 | Shaun | pythondev_help_Shaun_2018-02-28T23:17:58.000143 | 1,519,859,878.000143 | 36,669 |
pythondev | help | actually I’ve read that, the example is all about getting the logger by name, and attach handler to it :disappointed: | 2018-02-28T23:19:32.000004 | Ben | pythondev_help_Ben_2018-02-28T23:19:32.000004 | 1,519,859,972.000004 | 36,670 |
pythondev | help | You want to store into the same log file? | 2018-02-28T23:23:08.000177 | Shaun | pythondev_help_Shaun_2018-02-28T23:23:08.000177 | 1,519,860,188.000177 | 36,671 |
pythondev | help | Or separate? | 2018-02-28T23:23:15.000063 | Shaun | pythondev_help_Shaun_2018-02-28T23:23:15.000063 | 1,519,860,195.000063 | 36,672 |
pythondev | help | either way you should be able to specify a log file name that will capture the logs of both | 2018-02-28T23:29:32.000249 | Shaun | pythondev_help_Shaun_2018-02-28T23:29:32.000249 | 1,519,860,572.000249 | 36,673 |
pythondev | help | or you can set up separate logging configs to capture each logger in a different file | 2018-02-28T23:29:56.000157 | Shaun | pythondev_help_Shaun_2018-02-28T23:29:56.000157 | 1,519,860,596.000157 | 36,674 |
pythondev | help | seperated, should I do this instead:
```
logger = logging.getLogger('myLib.logger')
def my_helper():
<http://logger.info|logger.info>('doing helper')
```
the place I use it:
```app_logger = my_app.getLogger('api.app1')
from mylib.helper import logger
logger = app_logger #so that logger in lib will use the fileh... | 2018-02-28T23:34:40.000225 | Ben | pythondev_help_Ben_2018-02-28T23:34:40.000225 | 1,519,860,880.000225 | 36,675 |
pythondev | help | the thing is logger instance in my_helper dont have the config from the place it use. | 2018-02-28T23:37:05.000172 | Ben | pythondev_help_Ben_2018-02-28T23:37:05.000172 | 1,519,861,025.000172 | 36,676 |
pythondev | help | hm, i'm not sure if I would go about it that way | 2018-02-28T23:38:16.000033 | Shaun | pythondev_help_Shaun_2018-02-28T23:38:16.000033 | 1,519,861,096.000033 | 36,677 |
pythondev | help | I would create 2 separate loggers using configs that are different or at least have a different filename | 2018-02-28T23:39:26.000199 | Shaun | pythondev_help_Shaun_2018-02-28T23:39:26.000199 | 1,519,861,166.000199 | 36,678 |
pythondev | help | and then import those to the respective modules within `api.app1` and `api.app2` | 2018-02-28T23:40:05.000064 | Shaun | pythondev_help_Shaun_2018-02-28T23:40:05.000064 | 1,519,861,205.000064 | 36,679 |
pythondev | help | but calling my_helper() wont write into that logger, the way you suggesting will look like this
helper lib:
```def my_helper(logger):
<http://logger.info|logger.info>('doing helper')```
place use it
``` _logger = logging.getLogger('api.app1')
my_helper(_logger)
``` | 2018-02-28T23:42:23.000169 | Ben | pythondev_help_Ben_2018-02-28T23:42:23.000169 | 1,519,861,343.000169 | 36,680 |
pythondev | help | what I doing is try to avoid passing logger instance into my lib | 2018-02-28T23:42:46.000072 | Ben | pythondev_help_Ben_2018-02-28T23:42:46.000072 | 1,519,861,366.000072 | 36,681 |
pythondev | help | you don't need to pass it | 2018-02-28T23:43:40.000101 | Shaun | pythondev_help_Shaun_2018-02-28T23:43:40.000101 | 1,519,861,420.000101 | 36,682 |
pythondev | help | you instantiate the logger once when you start your `app`s and then import logging into the modules you want to log stuff and simply call `your_logger = logging.getLogger(your_instantiated_logger) and do your_logger.debug(logstuff)` | 2018-02-28T23:45:01.000286 | Shaun | pythondev_help_Shaun_2018-02-28T23:45:01.000286 | 1,519,861,501.000286 | 36,683 |
pythondev | help | maybe I'm not understanding correctly? | 2018-02-28T23:45:10.000100 | Shaun | pythondev_help_Shaun_2018-02-28T23:45:10.000100 | 1,519,861,510.0001 | 36,684 |
pythondev | help | might be, ok
So I have a project call “my_lib”, an external project, will be import into the my “api” projects using pip install
in my_lib project, I have my_helper which is using a logger instance.
Inside my “api.app1” project and “api.app2" project, I have 2 logger instance call “api.app1” and “api.app2" (those poin... | 2018-02-28T23:49:00.000189 | Ben | pythondev_help_Ben_2018-02-28T23:49:00.000189 | 1,519,861,740.000189 | 36,685 |
pythondev | help | youre going to have to handle separate log files in your helper | 2018-02-28T23:53:21.000076 | Shaun | pythondev_help_Shaun_2018-02-28T23:53:21.000076 | 1,519,862,001.000076 | 36,686 |
pythondev | help | I can work up an example tomorrow night if you haven't solved by that time | 2018-02-28T23:54:40.000083 | Shaun | pythondev_help_Shaun_2018-02-28T23:54:40.000083 | 1,519,862,080.000083 | 36,687 |
pythondev | help | how do i clear the sheet before writing data into it ? i want to make sure that none of the cell in sheet have any value. I cant delete the sheet, and create new one. since there would be other sheet which would be referring mysheet , and those formula would isntantly become invalid if i delete the sheet | 2018-02-28T23:54:44.000090 | Refugia | pythondev_help_Refugia_2018-02-28T23:54:44.000090 | 1,519,862,084.00009 | 36,688 |
pythondev | help | but basically your apps don't know know the difference between log files since the same helper is being called in both | 2018-02-28T23:55:07.000087 | Shaun | pythondev_help_Shaun_2018-02-28T23:55:07.000087 | 1,519,862,107.000087 | 36,689 |
pythondev | help | you need to make helper aware of the app it's in | 2018-02-28T23:55:16.000154 | Shaun | pythondev_help_Shaun_2018-02-28T23:55:16.000154 | 1,519,862,116.000154 | 36,690 |
pythondev | help | i would like to clear entire sheet, not just specific range | 2018-02-28T23:59:03.000233 | Refugia | pythondev_help_Refugia_2018-02-28T23:59:03.000233 | 1,519,862,343.000233 | 36,691 |
pythondev | help | the awareness of the app it in, yeah, any keyword for that, thanks | 2018-03-01T00:04:21.000016 | Ben | pythondev_help_Ben_2018-03-01T00:04:21.000016 | 1,519,862,661.000016 | 36,692 |
pythondev | help | Referring the article `<https://www.electricmonk.nl/log/2013/11/06/increasing-performance-of-bulk-updates-of-large-tables-in-mysql/>`
it says cursors make Mysql operations slow as MySQL does not support cursors and I should use `mysqlclient` library.
If that's true, anyone use `mysqlclient`? I am currently using `PyM... | 2018-03-01T01:55:12.000124 | Krista | pythondev_help_Krista_2018-03-01T01:55:12.000124 | 1,519,869,312.000124 | 36,693 |
pythondev | help | Hi all! I need some help | 2018-03-01T02:56:04.000192 | Margarete | pythondev_help_Margarete_2018-03-01T02:56:04.000192 | 1,519,872,964.000192 | 36,694 |
pythondev | help | I want insert data of list to mysql table | 2018-03-01T02:56:35.000189 | Margarete | pythondev_help_Margarete_2018-03-01T02:56:35.000189 | 1,519,872,995.000189 | 36,695 |
pythondev | help | but this variant don't work | 2018-03-01T02:59:30.000156 | Margarete | pythondev_help_Margarete_2018-03-01T02:59:30.000156 | 1,519,873,170.000156 | 36,696 |
pythondev | help | i use pymysql | 2018-03-01T02:59:37.000327 | Margarete | pythondev_help_Margarete_2018-03-01T02:59:37.000327 | 1,519,873,177.000327 | 36,697 |
pythondev | help | <@Margarete> show us your real code | 2018-03-01T03:38:51.000505 | Aleida | pythondev_help_Aleida_2018-03-01T03:38:51.000505 | 1,519,875,531.000505 | 36,698 |
pythondev | help | i want insert k(list) into musql table, but don't know. | 2018-03-01T03:43:54.000495 | Margarete | pythondev_help_Margarete_2018-03-01T03:43:54.000495 | 1,519,875,834.000495 | 36,699 |
pythondev | help | <@Margarete> how the `k` list looks like? | 2018-03-01T03:48:39.000353 | Aleida | pythondev_help_Aleida_2018-03-01T03:48:39.000353 | 1,519,876,119.000353 | 36,700 |
pythondev | help | k = ['lastname', 'name', 'datebirth'] | 2018-03-01T03:50:11.000152 | Margarete | pythondev_help_Margarete_2018-03-01T03:50:11.000152 | 1,519,876,211.000152 | 36,701 |
pythondev | help | Is that true? The whole list contains only three values? | 2018-03-01T03:58:14.000195 | Aleida | pythondev_help_Aleida_2018-03-01T03:58:14.000195 | 1,519,876,694.000195 | 36,702 |
pythondev | help | <https://repl.it/repls/DimgrayIncompleteWorkplace>
You can easily adapt this sqlite3 snippet to mysql client | 2018-03-01T03:59:49.000192 | Aleida | pythondev_help_Aleida_2018-03-01T03:59:49.000192 | 1,519,876,789.000192 | 36,703 |
pythondev | help | no, fields much more, but for example i write three | 2018-03-01T04:00:45.000139 | Margarete | pythondev_help_Margarete_2018-03-01T04:00:45.000139 | 1,519,876,845.000139 | 36,704 |
pythondev | help | That's why I asked you to show your _real_ code with _real_ data | 2018-03-01T04:01:03.000304 | Aleida | pythondev_help_Aleida_2018-03-01T04:01:03.000304 | 1,519,876,863.000304 | 36,705 |
pythondev | help | <https://stackoverflow.com/a/5526937> | 2018-03-01T04:01:43.000560 | Aleida | pythondev_help_Aleida_2018-03-01T04:01:43.000560 | 1,519,876,903.00056 | 36,706 |
pythondev | help | Because fields are same, name1, name2 and etc... | 2018-03-01T04:02:28.000060 | Margarete | pythondev_help_Margarete_2018-03-01T04:02:28.000060 | 1,519,876,948.00006 | 36,707 |
pythondev | help | Thanks a lot for help | 2018-03-01T04:02:43.000397 | Margarete | pythondev_help_Margarete_2018-03-01T04:02:43.000397 | 1,519,876,963.000397 | 36,708 |
pythondev | help | How to make it in loop? | 2018-03-01T04:05:59.000269 | Margarete | pythondev_help_Margarete_2018-03-01T04:05:59.000269 | 1,519,877,159.000269 | 36,709 |
pythondev | help | Don't do it in a loop, use bulk inserts | 2018-03-01T04:08:51.000084 | Aleida | pythondev_help_Aleida_2018-03-01T04:08:51.000084 | 1,519,877,331.000084 | 36,710 |
pythondev | help | hmm, i think about this, thanks. | 2018-03-01T04:11:23.000363 | Margarete | pythondev_help_Margarete_2018-03-01T04:11:23.000363 | 1,519,877,483.000363 | 36,711 |
pythondev | help | Greetings everyone... | 2018-03-01T05:51:08.000314 | Jerica | pythondev_help_Jerica_2018-03-01T05:51:08.000314 | 1,519,883,468.000314 | 36,712 |
pythondev | help | my problem is memory and storage.. | 2018-03-01T05:51:33.000156 | Jerica | pythondev_help_Jerica_2018-03-01T05:51:33.000156 | 1,519,883,493.000156 | 36,713 |
pythondev | help | ```
import csv
start = 250000000 #12
num12 = 120000000000
num16 = 1616598788722221
id = 0
with open("data.csv", "wb") as f:
writer = csv.writer(f, delimiter=",")
while (start > 0):
start = start + 1
num12 = num12 + 1
id = id + 1
writer.writerow(["id", start, "TRUE", num12]... | 2018-03-01T05:51:44.000378 | Jerica | pythondev_help_Jerica_2018-03-01T05:51:44.000378 | 1,519,883,504.000378 | 36,714 |
pythondev | help | i am generating csv row of about a billion... and I am running out of memory. | 2018-03-01T05:52:21.000043 | Jerica | pythondev_help_Jerica_2018-03-01T05:52:21.000043 | 1,519,883,541.000043 | 36,715 |
pythondev | help | is there a better way to write this ... | 2018-03-01T05:52:38.000264 | Jerica | pythondev_help_Jerica_2018-03-01T05:52:38.000264 | 1,519,883,558.000264 | 36,716 |
pythondev | help | <@Aleida> How to insert many lists? | 2018-03-01T05:55:10.000219 | Margarete | pythondev_help_Margarete_2018-03-01T05:55:10.000219 | 1,519,883,710.000219 | 36,717 |
pythondev | help | INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9); | 2018-03-01T05:55:37.000384 | Margarete | pythondev_help_Margarete_2018-03-01T05:55:37.000384 | 1,519,883,737.000384 | 36,718 |
pythondev | help | in one tables? | 2018-03-01T05:55:57.000056 | Margarete | pythondev_help_Margarete_2018-03-01T05:55:57.000056 | 1,519,883,757.000056 | 36,719 |
pythondev | help | <@Jerica> how much RAM is on your machine? if you’re running out of memory, I’d look int chunking the writes | 2018-03-01T06:05:31.000187 | Floy | pythondev_help_Floy_2018-03-01T06:05:31.000187 | 1,519,884,331.000187 | 36,720 |
pythondev | help | eg, open the file, write a chunk of rows, cose it | 2018-03-01T06:05:45.000029 | Floy | pythondev_help_Floy_2018-03-01T06:05:45.000029 | 1,519,884,345.000029 | 36,721 |
pythondev | help | and repeat until everything is written | 2018-03-01T06:05:51.000105 | Floy | pythondev_help_Floy_2018-03-01T06:05:51.000105 | 1,519,884,351.000105 | 36,722 |
pythondev | help | only 6gb.. | 2018-03-01T06:06:08.000216 | Jerica | pythondev_help_Jerica_2018-03-01T06:06:08.000216 | 1,519,884,368.000216 | 36,723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.