Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Overloading of querycache.value

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


greg at endpoint

Jun 5, 2008, 12:00 PM

Post #1 of 3 (324 views)
Permalink
Overloading of querycache.value

I was looking into bug 14414

https://bugzilla.wikimedia.org/show_bug.cgi?id=14414

and found that although querycache.value is declared as an int in
tables.sql, it's being used to store many things. The default in
QueryPage.php was to fallback to an empty string (I just changed this to
0, but this may have been too hasty in light of further digging: feel free
to revert). Other places are storing things like img_timestamp here, which
is in MySQL a varbinary(12) (e.g. a text string), which happens to be a
series of digits, which just happens to map to an integer, so it fits in
the 'value' column quite nicely. Other databases, not so nicely, as
img_timestamp is an actual timestamp. Before I go much further, is the
battle to fix the value mappings worth it, or should I just redefine
querycache.value to be a text value for the Postgres schema? Any downsides
in the code for the latter that people are aware of? Thanks.

P.S. There maybe other problems with regards to this bug, I'm just
tackling this one issue right now.

--
Greg Sabino Mullane greg [at] endpoint
Attachments: signature.asc (0.16 KB)


brion at wikimedia

Jun 5, 2008, 1:15 PM

Post #2 of 3 (302 views)
Permalink
Re: Overloading of querycache.value [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Sabino Mullane wrote:
> Before I go much further, is the
> battle to fix the value mappings worth it, or should I just redefine
> querycache.value to be a text value for the Postgres schema? Any downsides
> in the code for the latter that people are aware of? Thanks.

Failure of all numeric sorting?

- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhISVQACgkQwRnhpk1wk44mQgCfeHkQyhKetErysCvfCtogb6Im
Z5cAnRaRBG3mGbtz67SABcJSWrUE9IuO
=7+w7
-----END PGP SIGNATURE-----

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


greg at endpoint

Jun 24, 2008, 2:02 PM

Post #3 of 3 (234 views)
Permalink
Re: Overloading of querycache.value [In reply to]

> > Before I go much further, is the
> > battle to fix the value mappings worth it, or should I just redefine
> > querycache.value to be a text value for the Postgres schema? Any
> > downsides in the code for the latter that people are aware of? Thanks.
>
> Failure of all numeric sorting?

(squints hard at QueryPage.php)

Is it being used that way anywhere? Believe me, I'd much rather change a
single column type than modify a bunch of code...

--
Greg Sabino Mullane greg [at] endpoint
End Point Corporation
Attachments: signature.asc (0.16 KB)

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.