Filter on PostId>10M on UserReplies page

main
Inga 🏳‍🌈 15 years ago
parent 462a07e6e2
commit 2e866a787c
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 8
      Common/dataobjects/User.cs

@ -233,11 +233,19 @@ namespace FLocal.Common.dataobjects {
return Post.LoadByIds( return Post.LoadByIds(
from stringId in Config.instance.mainConnection.LoadIdsByConditions( from stringId in Config.instance.mainConnection.LoadIdsByConditions(
Post.TableSpec.instance, Post.TableSpec.instance,
new ComplexCondition(
ConditionsJoinType.AND,
new ComparisonCondition( new ComparisonCondition(
parent.additionalTable.getColumnSpec(Post.TableSpec.FIELD_POSTERID), parent.additionalTable.getColumnSpec(Post.TableSpec.FIELD_POSTERID),
ComparisonType.EQUAL, ComparisonType.EQUAL,
this.id.ToString() this.id.ToString()
), ),
new ComparisonCondition(
Post.TableSpec.instance.getIdSpec(),
ComparisonType.GREATEROREQUAL,
Thread.FORMALREADMIN.ToString()
)
),
diapasone, diapasone,
new JoinSpec[] { new JoinSpec[] {
parent parent

Loading…
Cancel
Save