Notices tagged with sql

  1. Now that's funny: https://boingboing.net/2019/08/14/geeks-idea-to-get-null-l.html #

    Thursday, 15-Aug-19 02:40:52 UTC from microblog.mjd.id.au at 30°21'41"S 153°6'9"E in context Repeated by rozzin
  2. Now that's funny: https://boingboing.net/2019/08/14/geeks-idea-to-get-null-l.html #

    Thursday, 15-Aug-19 02:40:52 UTC from microblog.mjd.id.au at 30°21'41"S 153°6'9"E in context
  3. Found a # query for !gnusocial to remote # #: UPDATE `file` SET `url` = SUBSTRING_INDEX(`url`, '?utm_', 1) WHERE `url` LIKE '%?utm_%'

    Friday, 28-Oct-16 14:21:10 UTC from social.mxchange.org
  4. Really nice # # #
    http://www.sqlstyle.guide/
    # # #

    Tuesday, 11-Oct-16 15:53:08 UTC from loadaverage.org
  5. Some developers are so afraid of # #, that they do interesting solutions. I tried to search for 'selection' but the search always turns out only for 'ion'. Also if looking dor deletion or insertion search also turns out only for 'ion'. So they're stripping the SQL commands from user input which they're so afraid of. Interesting way to deal with the issue. But doing that basically introduced usability issues which can be counted as bug. High five for your security team. This also reminds me from services which strips all ' from strings, just to be sure. They're not stripping drop or or create table commands, interesting logic there. Probably the user account doesn't have rights to drop or create tables, because those aren't being filtered.

    Sunday, 24-Jul-16 13:13:14 UTC from loadaverage.org
  6. Todays tech tip: gPodder doesn't let you search episode title/descriptions. Presuming you can write # queries (and who in this world of tech-literate, digital native millennials can't?) open ~/gPodder/Database with http://sqlitebrowser.org/

    Friday, 01-Jul-16 02:26:00 UTC from microblog.ourcoffs.org.au
  7. For the last 3 (!) days (including today) I tried to fix the problem that while the # is merging (similar to UPDATE # statement) entities, some tables got filled with new rows (search for "eclipselink insert instead update") which leaves orphaned rows behind. I could enable orphanRemoval=true but that only adds another performance penalty. So I decided to switch to # instead of remaining with # cc !java

    Sunday, 06-Mar-16 18:46:34 UTC from social.mxchange.org Repeated by mcscx2old
  8. For the last 3 (!) days (including today) I tried to fix the problem that while the # is merging (similar to UPDATE # statement) entities, some tables got filled with new rows (search for "eclipselink insert instead update") which leaves orphaned rows behind. I could enable orphanRemoval=true but that only adds another performance penalty. So I decided to switch to # instead of remaining with # cc !java

    Sunday, 06-Mar-16 18:46:34 UTC from social.mxchange.org
  9. @deavmi and # ;-)

    Saturday, 14-Nov-15 17:31:31 UTC from quitter.se
  10. Ща расскажу забавную вещь. Работаю тут с SQLite. Нужно сделать проверку именно существования таблицы name. Ну и пишу "SELECT name FROM sqlite_master;". Прокатывает. Ладно, нужно проверить другую. Пишу "SELECT other FROM sqlite_master;" и не могу понять почему не работает. Оказалось, что нужно "SELECT name FROM sqlite_master WHERE name='other';". А первое знаете почему работало? Потому что в таблице sqlite_master колонка названий таблиц называется name. Ну он и выбирал все. # #

    Tuesday, 06-May-14 13:27:35 UTC from loadaverage.org
  11. Going by posts in the issue queue, people who use Rules are also fond of # Who needs APIs when you have db_query()? # #

    Friday, 13-Dec-13 02:27:39 UTC from microblog.ourcoffs.org.au in context
  12. hm, ok. I am looking e.g. at http://rainbowdash.net/conversation/3070621 - let's find out via #? select count(*) from conversation;

    Friday, 15-Nov-13 21:55:28 UTC from oracle.skilledtests.com in context
  13. since @lnxw37@quitter.se 's server is !not online anymore, I assume 1. you will get the # from a # somewhere 2. each SN server has the # at bottom of its pages for # <- so I see no problem with topic extraction, though you might also ask @lnxw37 since he may still have a (working) DB and could extract via # faster for you

    Monday, 16-Sep-13 13:04:08 UTC from oracle.skilledtests.com
  14. Before I go to bed, I wanted to share this because it makes me happy. http://dpaste.com/749403/ @widget @bitshift !coderpony #

    Thursday, 17-May-12 16:31:19 UTC from web
  15. Pre-caching the path instead of generating it dynamically seems to only improve cached performance (though the improvement there is dramatic). In some cases the uncached performance was actually *worse* than generating the path in a WITH RECURSIVE block. http://pgsql.privatepaste.com/60741d539f @bitshift @widget !coderpony #

    Monday, 14-May-12 09:32:33 UTC from web
  16. So, first test: building the paths in a WITH RECURSIVE block under normal settings. Test shows that this is, indeed, unacceptably slow but cached performance is phenomenal until the thread gets monstrously huge; as real world threads will never get as big as even the smallest thread in this sample, and certainly won't be so spread out, I consider the cached performance to be acceptable but I'd like something better for uncached performance. Now let's test it with the pre-computed paths. http://pgsql.privatepaste.com/205d6138f2 @bitshift @widget !coderpony #

    Monday, 14-May-12 09:10:37 UTC from web
  17. Hm, that was done faster than I thought. I estimated the total size would get to be over 5GB but it only got to 4.1GB before it finished. Here's an hour-by-hour breakdown of how long it took to populate the database with over ten million rows: http://dpaste.com/747878/ !coderpony #

    Monday, 14-May-12 08:23:58 UTC from web in context
  18. At one million rows, the performance increase of sorting on a pre-computed path is negligible compared to generating the path in a WITH RECURSIVE block. I'll generate another ten million rows overnight and see how that performs tomorrow. #

    Sunday, 13-May-12 07:06:30 UTC from web
  19. I can't understand what this error is about. All of my parenthesis seem to line up properly (and it successfully creates the first two tables before the one with the error) and I don't see any misplaced or missing semicolons. Any help? http://dpaste.com/747347/ @bitshift @widget !coderpony #

    Sunday, 13-May-12 01:13:01 UTC from web in context
  20. Also I do believe this is the first valid use of an array I've found. #

    Saturday, 12-May-12 22:44:26 UTC from web
  21. Alright I figured out what I need to do. If we store the path to each post directly in the database, there is no need for a recursive query. Sorting is fast and fetching posts by thread is also fast, so as long as these are the only things we're doing the result will be fast. Unfortunately testing this against ten million posts will have to wait until tomorrow as implementing this requires updating the schema. I believe that there is nothing further I can do with this database so it's time to drop it and get that new schema in there. #

    Saturday, 12-May-12 22:43:22 UTC from web in context
  22. Here's a comparison of uncached performance vs cached performance http://dpaste.com/747276/ @bitshift @widget !coderpony #

    Saturday, 12-May-12 20:37:27 UTC from web in context
  23. Performance is pretty terrible with ten million rows. I'll have to work out a way to deal with it. #

    Saturday, 12-May-12 18:55:22 UTC from web
  24. I wonder how long ago this would have been done if I could use COPY. I started populating four and a half hours ago and it's not even two-thirds done yet. #

    Saturday, 12-May-12 00:05:40 UTC from web
  25. Just to see how well this really scales, let's try it with ten million pots. Predictions? #

    Friday, 11-May-12 19:35:35 UTC from web
  26. I'm pretty happy about this. http://dpaste.com/746779/ @widget @bitshift !coderpony #

    Friday, 11-May-12 19:14:58 UTC from web
  27. Good news: I've identified what sort of query I need in order to output conversations sorted as threads. Bad news: it's WITH RECURSIVE. #

    Friday, 11-May-12 13:30:26 UTC from web
  28. Also the fact that CHECK constraints can contain functions in general really. #

    Friday, 11-May-12 12:33:50 UTC from web
  29. I have discovered that CHECK constraints can contain subqueries if you encapsulate them inside of functions. This opens up so many possibilities. #

    Friday, 11-May-12 12:31:49 UTC from web
  30. Learning quite a few things about what I've been doing wrong. It's great to be able to finally test this stuff. #

    Friday, 11-May-12 05:22:41 UTC from web