Feb. 4th, 2012

mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
[staff profile] mark
[commit: http://hg.dwscoalition.org/dw-free/rev/46d43779211f]

LJ::Comment singletons considered bad for your health

After much digging, it turned out that the slowness encountered on re-
importing was caused by this very simple thing: iterating over, and over,
and over through the %singletons hash to look for which singletons had not
yet been loaded.

Instead of doing that, let's just create some arrays wherein we keep track
of the poor little babies that haven't yet been ripped from the comforting
embrace of the database. Er, well, I mean... let's just keep an array of
which ones aren't loaded yet. Then it's O(N) to load them and everything
goes much, much faster.

Before:

[0.5872s 80666.4s] Attempting to import remote id 300548

After:

[0.0030s 1351.3s] Attempting to import remote id 289204

In other words, it had taken almost a whole day to get to 300,000 on the re-
import. After this change, it has now gotten to nearly the same point in 23
minutes. That's a little bit faster.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/DW/Worker/ContentImporter/LiveJournal/Comments.pm
  • cgi-bin/LJ/Comment.pm
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu
[commit: http://hg.dwscoalition.org/dw-free/rev/c1545996122e]

http://bugs.dwscoalition.org/show_bug.cgi?id=3852

/support/history is now available to everyone. Regular users can view
requests made by their account, and requests from any of their previously
validated emails. Only supporthelps can actually search history for all
users.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/support/history.bml
Diff: 1 file changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu
[commit: http://hg.dwscoalition.org/dw-free/rev/2c754f90cdc7]

http://bugs.dwscoalition.org/show_bug.cgi?id=8

Add a notification for subscribing to a user's posts to a community. You can
get to it by clicking on "track this" under an entry by the desired user.

Patch by [personal profile] sophie.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/LJ/Event/JournalNewEntry.pm
  • htdocs/manage/tracking/entry.bml
Diff: 3 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu
[commit: http://hg.dwscoalition.org/dw-free/rev/1c2762171cbd]

http://bugs.dwscoalition.org/show_bug.cgi?id=4225

Aged Wine, Killjoys, and Sakura by [personal profile] inoru_no_hoshi. Turtle by
[profile] nornoriel.

Patch by [personal profile] delladea.

Files modified:
  • bin/upgrading/s2layers/crossroads/themes.s2
  • htdocs/img/customize/previews/crossroads/agedwine.png
  • htdocs/img/customize/previews/crossroads/killjoys.png
  • htdocs/img/customize/previews/crossroads/sakura.png
  • htdocs/img/customize/previews/crossroads/turtle.png
Diff: 5 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu
[commit: http://hg.dwscoalition.org/dw-free/rev/0d421138560e]

http://bugs.dwscoalition.org/show_bug.cgi?id=3419

Add sitewide default pagination, and create a setting in S2.

Patch by [personal profile] exor674.

Files modified:
  • bin/upgrading/s2layers/core2.s2
  • bin/upgrading/s2layers/siteviews/layout.s2
  • cgi-bin/LJ/Global/Defaults.pm
  • cgi-bin/LJ/S2/IconsPage.pm
Diff: 4 files changed. )

Profile

Dreamwidth Changelog

June 2025

S M T W T F S
1234567
89101112 13 14
1516171819 2021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 13th, 2025 03:41 pm
Powered by Dreamwidth Studios